User & Role Management
Panther API user and role management operations
Overview
The Panther API supports the following user and role operations:
List users
Get a user by ID or by email address
Invite new users
Update a user's information and role
Delete users
List roles
Get a role by ID or by name
Create a new role
Update a role's information and permissions
Delete roles
You can invoke Panther's API by using your Console's API Playground, or the GraphQL-over-HTTP API. Learn more about these methods on Panther API.
See the sections below for GraphQL queries, mutations, and end-to-end workflow examples around core user and role management operations.
Common user and role management operations
Below are some of the most common GraphQL user and role management operations in Panther. These examples demonstrate the documents you have to send using a GraphQL client (or curl
) to make a call to Panther's GraphQL API.
Note: The createdAt
field is in ISO 8601 date and time standard.
Listing Users
Retrieving a User
Inviting a new User
Updating a User
Deleting a User
Listing Roles
Retrieving a Role
Creating a new Role
Note: The permission UserModify
provides full admin access to the Panther platform. Use discretion when assigning this permission to new roles.
Updating a Role
Note: The permissions in the updateRole input must contain all desired permissions for the role.
Deleting a Role
End-to-end examples
Below, we will build on the Common Operations examples to showcase an end-to-end flow.
Create a new user administrator role and invite a user to that role.
Last updated
Was this helpful?