Admin
The following actions on this page are only available in the Admin Center (SAML scripts).
ActivateUser
Activates an user and sends them an activation mail. Throws an error if the user could not be found. Does nothing if the user is already activated.
Syntax
Parameters
UserId The ID of the user to activate. Type: Guid
Return type
Void
AddUserToGroup
Takes a GroupId and a UserId as input and adds a user to a group.
Syntax
Parameters
GroupId The ID of the group the user should get associated with. Type: Guid
UserId The ID which identifies the user. Type: Guid
Return Type
Void
AddUserToOffice
Takes an OfficeId and a UserId as input and adds a user to an office.
Syntax
Parameters
OfficeId The ID of the office the user should get added to. Type: Guid
UserId This ID which identifies the user. Type: Guid
Return Type
Void
CreateUser
Creates and returns an user with the given information. Throws an error if an user with the same login name already exists.
Syntax
Parameters
OfficeId The ID of the office to create the user for (the executing user must have access to it). Type: Guid
LoginName The e-mail address of the new user (must be unique). Type: String
FirstName The first name of the new user. Type: String
LastName The last name of the new user. Type: String
NickName The nick name or abbreviation of the new user. Type: String
Language The language of the new user. Type: Language
Return type
Object
DeleteUserFromGroup
Takes a GroupId and a UserId as input and deletes a user from a group.
Syntax
Parameters
GroupId The ID of the group the user should get deleted from. Type: Guid
UserId The ID which identifies the user. Type: Guid
Return Type
Void
DeleteUserFromOffice
Takes an OfficeId and a UserId as input and deletes a user from an office.
Syntax
Parameters
OfficeId The ID of the office the user should get deleted from. Type: Guid
UserId This ID which identifies the user. Type: Guid
Return Type
Void
CreateUser
Creates and returns an user with the given information. Throws an error if an user with the same login name already exists.
Syntax
Level
PlatformAdministrator
Parameters
OfficeId The ID of the office to create the user for (the executing user must have access to it). Type: Guid
LoginName The mail address of the new user (must be unique). Type: String
FirstName The first name of the new user. Type: String
LastName The last name of the new user. Type: String
NickName The nick name or abbreviation of the new user. Type: String
Language The language of the new user.
Behavior:
Creates an user like the 'Admin Center' creates user: not activated or confirmed.
User can only created for the specified office, however, user must be unique throughout the platform.
Return Type
Object
ActivateUser
Activates an user and sends them an activation mail. Throws an error if the user could not be found. Does nothing if the user is already activated.
Syntax
Level
PlatformAdministrator
Parameters
UserId The ID of the user to activate. Type: Guid
Behavior:
Activates an user like the 'Admin Center' activates user: sending the activation mail to change password and confirming the user.
Only user to which the current executing user has access to can be activated.
Return Type
None
Last updated