Skip to content

Commit

Permalink
deactivate user
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaarbonel committed Sep 18, 2024
1 parent b062cd8 commit ee2c3ce
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ response = client.deactivate_users(user_ids=[alice.id, bob.id])

</TabItem>

<TabItem value="go" label="Golang">

```go
// deactivate one user
client.DeactivateUser(ctx, alice.ID, &DeactivateUserRequest{})

// reactivates the user
client.ReactivateUser(ctx, alice.ID, &ReactivateUserRequest{})

// deactivates users in bulk, this is an async operation
response = client.DeactivateUsers(ctx, &DeactivateUsersRequest{UserIDs: []string{alice.ID, bob.ID}})
```

</TabItem>

<TabItem value="curl" label="cURL">

```bash
Expand Down

0 comments on commit ee2c3ce

Please sign in to comment.