Gets information about a Content Services user.
createPerson(newPerson: PersonBodyCreate, opts?: any): Observable<EcmUserModel>
Creates new person.
PersonBodyCreate - Object containing the new person details.any - (Optional) Optional parametersObservable<EcmUserModel> - Created new persongetCurrentPerson(): Observable<EcmUserModel>
Observable<EcmUserModel> - getCurrentUserInfo(): Observable<EcmUserModel>
Gets information about the current user alias -me-
Observable<EcmUserModel> - User informationgetPerson(personId: string): Observable<EcmUserModel>
Gets information about a user identified by their username.
string - ID of the target userObservable<EcmUserModel> - User informationgetUserProfileImage(avatarId: string): string
Returns a profile image as a URL.
string - Target avatarstring - Image URLisCurrentUserAdmin(): boolean
Used to know if the current user has the admin capability
boolean - true or falselistPeople(requestQuery?: PeopleContentQueryRequestModel): Observable<PeopleContentQueryResponse>
Gets a list of people.
PeopleContentQueryRequestModel - (Optional) maxItems and skipCount parameters supported by JS-APIObservable<PeopleContentQueryResponse> - Response containing pagination and list of entriesresetLocalCurrentUser()
Reset the local current user object
updatePerson(personId: string, details: PersonBodyUpdate, opts?: any): Observable<EcmUserModel>
Updates the person details
string - The identifier of a personPersonBodyUpdate - The person detailsany - (Optional) Optional parametersObservable<EcmUserModel> - Updated person modelThe class returned by getPerson and getCurrentPerson is detailed
in the Ecm User model docs. The avatarId passed to
getUserProfileImage is available as a field of the EcmUserModel instance
returned for a particular person.
See the getPerson, listPeople and createPerson methods in the Alfresco JS API for more information about the REST calls used by this service.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.