Deactivate user
The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data..
curl -X POST "https://loading/v2/users/string/deactivate"{
"details": {
"sequence": 0,
"changeDate": "2023-01-15T01:30:15.01Z",
"resourceOwner": "string",
"creationDate": "2023-01-15T01:30:15.01Z"
}
}Was this page helpful?
Create an invite code for a user
Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created prev...
Delete the user phone
Delete the user phone: Deprecated: [Update the users phone field](/reference/api/user/zitadel.user.v2.UserService.UpdateUser) to remove the phone number. Delete the phone number of a user.