Users.undelete (Method)
Removes a user from being a 'deleted' user and optionally updates the user's login name.
Returns:
Void
Arguments:
Name | Type | Required | Description |
---|---|---|---|
userID | UserID | Required | A user's ID. |
userName | PlainText_255 | Optional. Defaults to an empty string. | The user name (that is. the user's login name). If this is the empty string, CommonSpot retains the user's original user name. |
Context:
License Requirements | None |
Permission Requirements | customer:ManageUsers |
Deny Context | None |
Require Context | None |
Author Lock | (not required) |
Transaction Logging | If transaction logging is enabled at the customer level, calls to this method will be logged |
Customization | Customization is not supported for this method. |
Error Codes:
Code | Error Message |
---|---|
66041 | CommonSpot could not restore user '$1' as this user's username is being used by another user. |
66042 | CommonSpot could not restore user '$1' as this username is being used by another user. |
66043 | You cannot undelete a user unless you are an administrator for this user. |
Notes:
None