Fetching Current User (users/current)
You can get information about the user who is currently signed in.
The URL to the CloudKit web service, which is
The protocol version—currently, 1.
A unique identifier for the app’s container. The container ID begins with
The version of the app’s container. Pass
developmentto use the environment that is not accessible by apps available on the store. Pass
productionto use the environment that is accessible by development apps and apps available on the store.
If the user is discoverable, this request returns the user’s name in a dictionary with the following keys:
The name of the user record.
The user’s first name.
The user’s last name.
Fetching current users returns the user ID and their name if they are discoverable.