UserResourcesRemoveUser Method |  |
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).
RemarksThis operation is only available to system administrators.
It mirrors to the following Smartsheet REST API method: DELETE /user{Id}
Namespace:
Smartsheet.Api
Assemblies:
smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
Syntaxvoid RemoveUser(
long userId,
Nullable<long> transferTo,
Nullable<bool> transferSheets,
Nullable<bool> removeFromSharing
)
Sub RemoveUser (
userId As Long,
transferTo As Nullable(Of Long),
transferSheets As Nullable(Of Boolean),
removeFromSharing As Nullable(Of Boolean)
)
void RemoveUser(
long long userId,
Nullable<long long> transferTo,
Nullable<bool> transferSheets,
Nullable<bool> removeFromSharing
)
abstract RemoveUser :
userId : int64 *
transferTo : Nullable<int64> *
transferSheets : Nullable<bool> *
removeFromSharing : Nullable<bool> -> unit
Parameters
- userId
- Type: SystemInt64
the Id of the user - transferTo
- Type: SystemNullableInt64
(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
- Type: SystemNullableBoolean
If true, and transferTo is specified, the deleted user’s sheets will be transferred. Else, sheets will not be transferred. Defaults to false. - removeFromSharing
- Type: SystemNullableBoolean
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.
Exceptions
See Also