Users endpoints
With role-based access control (RBAC), you can manage local users and remote users
(created on a directory service). Use the users
endpoints to get lists of
users, create local users, and delete, revoke, and reinstate users in PE.
You can:
- GET /users: Get a list of all local and remote users.
- GET /users/<sid>: Get information about specific users.
- GET /users/current : Get information about the current authenticated user.
- GET /users/<sid>/tokens: Get a list of tokens for a user.
- POST /users: Create a local user.
- PUT /users/<sid>: Edit a user.
- DELETE /users/<sid>: Delete a user from the PE console.
- POST /command/users/add-roles: Assign roles to a user.
- POST /command/users/remove-roles: Remove roles from a user.
- POST /command/users/revoke: Revoke a user's PE access.
- POST /command/users/reinstate: Reinstate a revoked user.
You'll want to be familiar with the Users endpoints keys that appear in these endpoints' requests and responses.