gives the cloud user ID of the authenticated user requesting the current evaluation.
$RequesterCloudUserID
gives the cloud user ID of the authenticated user requesting the current evaluation.
Details
- If the current evaluation was not initiated by an authenticated user, $RequesterCloudUserID is None. This can occur, for example, if a desktop user has not authenticated against the cloud, or a cloud service not requiring authentication is being used.
- $RequesterCloudUserID is always the cloud user ID for the requesting user in the cloud in which the evaluation is being done.
Examples
open all close allBasic Examples (2)
Give the identify of the authenticated user requesting the evaluation:
CloudEvaluate[$RequesterCloudUserID]Publish an API that gives the identity of the requester:
api = CloudPublish[APIFunction[{}, $RequesterCloudUserID&]]CloudConnect["alice@example.com"]Request the API while connected as a different user:
URLRead[api, "Body"]CloudDisconnect[]Request the API while not connected to the cloud:
URLRead[api, "Body"]Neat Examples (1)
Log the details of each access to an API, including the identity of the caller:
primes = CloudPublish[APIFunction[{"n" -> Integer}, (PutAppend[{Now, $RequesterCloudUserID, #n}, CloudObject["requests.log"]]; #n -> FactorInteger[#n])&]]ReadList[CloudObject["requests.log"]]History
Text
Wolfram Research (2021), $RequesterCloudUserID, Wolfram Language function, https://reference.wolfram.com/language/ref/$RequesterCloudUserID.html.
CMS
Wolfram Language. 2021. "$RequesterCloudUserID." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$RequesterCloudUserID.html.
APA
Wolfram Language. (2021). $RequesterCloudUserID. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$RequesterCloudUserID.html
BibTeX
@misc{reference.wolfram_2026_$requesterclouduserid, author="Wolfram Research", title="{$RequesterCloudUserID}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/$RequesterCloudUserID.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$requesterclouduserid, organization={Wolfram Research}, title={$RequesterCloudUserID}, year={2021}, url={https://reference.wolfram.com/language/ref/$RequesterCloudUserID.html}, note=[Accessed: 13-June-2026]}