Méthode | Description | |
---|---|---|
AddAlternateEmail ( long userId, IEnumerable |
Add alternate email(s). It mirrors to the following Smartsheet REST API method: POST /users/{userId}/alternateemails
|
|
AddUser ( User user, bool sendEmail, bool allowInviteAccountAdmin ) : User |
Add a user To the organization, without sending Email. It mirrors To the following Smartsheet REST API method: POST /Users Exceptions: - IllegalArgumentException : if any argument is null - InvalidRequestException : if there is any problem with the REST API request - AuthorizationException : if there is any problem with the REST API authorization(access token) - ResourceNotFoundException : if the resource can not be found - ServiceUnavailableException : if the REST API service is not available (possibly due To rate limiting) - SmartsheetRestException : if there is any other REST API related error occurred during the operation - SmartsheetException : if there is any other error occurred during the operation Add a user To the organization It mirrors To the following Smartsheet REST API method: POST /Users
|
|
DeleteAlternateEmail ( long userId, long altEmailId ) : void |
Delete alternate email. It mirrors to the following Smartsheet REST API method: DELETE /users/{userId}/alternateemails/{alternateEmailId}
|
|
GetAlternateEmail ( long userId, long altEmailId ) : AlternateEmail |
Get alternate email. It mirrors to the following Smartsheet REST API method: GET /users/{userId}/alternateemails/{alternateEmailId}
|
|
GetCurrentUser ( ) : UserProfile |
Get the current user. It mirrors To the following Smartsheet REST API method: GET /users/me
|
|
GetUser ( long userId ) : UserProfile |
Gets the user. It mirrors To the following Smartsheet REST API method: GET /users/{userId}
|
|
ListAlternateEmails ( long userId, PaginationParameters pagination ) : PaginatedResult |
List all user alternate email(s). It mirrors to the following Smartsheet REST API method: GET /users/{userId}/alternateemails
|
|
ListUsers ( IEnumerable |
List all Users. It mirrors To the following Smartsheet REST API method: GET /Users
|
|
RemoveUser ( long userId, long transferTo, bool transferSheets, bool removeFromSharing ) : void |
Removes a User from an organization. User is transitioned to a free collaborator with read-only access to owned sheets (unless those are optionally transferred to another user). It mirrors To the following Smartsheet REST API method: DELETE /user{Id}
|
|
UpdateUser ( User user ) : User |
Update a user. It mirrors To the following Smartsheet REST API method: PUT /users/{userId}
|
|
UserResourcesImpl ( |
Constructor. Exceptions: - IllegalArgumentException : if any argument is null
|
public AddAlternateEmail ( long userId, IEnumerable |
||
userId | long | the Id of the user |
altEmails | IEnumerable |
list of AlternateEmail(s) |
Résultat | IList |
public AddUser ( User user, bool sendEmail, bool allowInviteAccountAdmin ) : User | ||
user | User | the user object limited To the following attributes: * Admin * Email * LicensedSheetCreator |
sendEmail | bool | flag indicating whether or not to send a welcome email. Defaults to false. |
allowInviteAccountAdmin | bool | if user is an admin in another organization, setting to true will invite their entire organization. |
Résultat | User |
public DeleteAlternateEmail ( long userId, long altEmailId ) : void | ||
userId | long | the Id of the user |
altEmailId | long | the alternate email Id |
Résultat | void |
public GetAlternateEmail ( long userId, long altEmailId ) : AlternateEmail | ||
userId | long | the Id of the user |
altEmailId | long | the alternate email Id |
Résultat | AlternateEmail |
public GetUser ( long userId ) : UserProfile | ||
userId | long | the user Id |
Résultat | UserProfile |
public ListAlternateEmails ( long userId, PaginationParameters pagination ) : PaginatedResult |
||
userId | long | the Id of the user |
pagination | PaginationParameters | the pagination |
Résultat | PaginatedResult |
public ListUsers ( IEnumerable |
||
emails | IEnumerable |
list of emails |
paging | PaginationParameters | the pagination |
Résultat | PaginatedResult |
public RemoveUser ( long userId, long transferTo, bool transferSheets, bool removeFromSharing ) : void | ||
userId | long | the Id of the user |
transferTo | long | (required if user owns groups): The ID of the user to transfer ownership to. /// If the user being deleted owns groups, they will be transferred to this user. /// If the user owns sheets, and transferSheets is true, then the deleted user’s sheets will be transferred to this user. |
transferSheets | bool | If true, and transferTo is specified, the deleted user’s sheets will be transferred. Else, sheets will not be transferred. Defaults to false. |
removeFromSharing | bool | Set to true to remove the user from sharing for all sheets/workspaces in the organization. If not specified, User will not be removed from sharing. |
Résultat | void |
public UpdateUser ( User user ) : User | ||
user | User | the user To update |
Résultat | User |
public UserResourcesImpl ( |
||
smartsheet | the Smartsheet | |
Résultat | System.Collections.Generic |