Users.setAccountExpiration (Method)

Sets or removes the account expiration for a user.

Returns:

Void

Arguments:

Name Type Required Description
id UserID Required A user's ID.
accountExpiration Date_EmptyString Optional. Defaults to an empty string. The date and time when the user's account expires. This value's format is 'yyyy-mm-dd HH:mm:ss'. If this is an empty string, the account does not expire.

Context:

License Requirements None
Permission Requirements User:Admin
Deny Context None
Require Context AuthoringEnabled
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:

None

Notes:

None