User Management API

Overview

circle-info

The User Management API enables you to efficiently administer and regulate user access within your workspace.

List Users

This endpoint will return a list of all the current active and invited users in your workspace.

Example Request

import requests
import os

# API credentials
api_endpoint = "<YOUR_API_ENDPOINT>"
api_key = "<YOUR_API_KEY>"
api_secret = "<YOUR_API_SECRET>"

graphql_query = """
query ListUsers {
    listUsers {
        ok
        activeUsers {
            uid
            email
            name
            accountType
        }
        invitedUsers {
            email
            accountType
            inviteStatus
        }
    }
}
  """
  
response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
      "Content-Type": "application/json",
      "X-API-KEY": api_key,
      "X-API-SECRET": api_secret,
  })

print(response.json())
chevron-rightExample responsehashtag

Invite Users

This endpoint will enable you to invite users to your workspace.

Example Request

chevron-rightExample responsehashtag

Update User Role

This endpoint will enable you to update the role of a current signed up user in your workspace.

Example Request

chevron-rightExample responsehashtag

Disable User

This endpoint will enable you to disable a user from your workspace.

Example Request

chevron-rightExample responsehashtag

Last updated

Was this helpful?