You can access other user's attributes by specifying their username, email address or phone number.
Retrievable user attributes
You can only read other user's attributes. The amount of user attributes retrievable depends on the application setting (the "Expose Full User Data To Others" option). See User Attributes for the further discussion.
The following sample shows you how to retrieve user data by username. The user needs to be logged in for accessing the data.
Retrieve user attributes with email address
The following sample shows you how to retrieve user data by email address. Note that you must specify the verified email address. The user needs to be logged in for accessing the data.
Retrieve user attributes with phone number
The following sample shows you how to retrieve user data by phone number. Note that you must specify a verified phone number in an international format (starting with + and your country code). The user needs to be logged in for accessing the data.
Retrieve user attributes with URI
The following sample shows you how to retrieve user data by URI. The user needs to be logged in for accessing the data.
Retrieve user attributes with userID
The following sample shows you how to retrieve user data with user ID. The user needs to be logged in for accessing the data.