Learn R Programming

synapseClient (version 1.14-0)

synGetUserProfile: synGetUserProfile

Description

Function which retrieves a user profile.

Usage

synGetUserProfile synGetUserProfile(principalId)

Arguments

Details

synGetUserProfile() returns the profile of the logged in user. synGetUserProfile(principalId) returns the profile of the specified user. User profiles have public and private fields. For example, first name and last name are public fields, while email address is private. When retrieving ones own user profile, all fields are returned. When retrieving another's profile, only the public fields are returned.

See Also

UserProfile

Examples

Run this code
## Not run: 
# # get my own user profile
# profile<-synGetUserProfile()
# propertyValue(profile, "position")<-"Imperial Vice Duke of all Engineering"
# profile<-synStore(profile)
# # get someone else's profile
# principalId<-"123456"
# profile<-synGetUserProfile(principalId)
# ## End(Not run)

Run the code above in your browser using DataLab