synGetUserProfile: synGetUserProfile

Description Usage Details See Also Examples

Description

Function which retrieves a user profile.

Usage

1
2

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

Sage-Bionetworks/rSynapseClient documentation built on May 9, 2019, 7:04 p.m.