discoverUserIdentityWithUserRecordName
Fetches information about a single user using the record name.
Declaration
Promise< CloudKit.UserIdentitiesResponse, CloudKit.CKError > discoverUserIdentityWithUserRecordName(
String userRecordName
);Parameters
- userRecordName:
The name of the user record.
Return Value
A Promise object that resolves to CloudKit.UserIdentitiesResponse object, or rejects to a CKError object.
Discussion
Use this method to retrieve information about a user for whom you have the corresponding name property of the User record. The user must meet the following criteria:
The user must be in the current user’s address book.
The user must have run the app.
The user must have granted the permission to be discovered for this container.