Organization Users

Retrieve all users in an organization, per organization ID.

Fetch Organization Users

Retrieving all organization users, per organization. This is done through querying the organization agents information.

For example: Let's get the organization users names and roles.

query Organization($where: OrganizationWhereUniqueInput!) {
	organization(where: $where) {
		agents {
			firstName
			lastName
			roles
		}
	}
}

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (OrganizationWhereUniqueInput object)

Name
Type
Description

id*

string

Organization ID. See Organization ID

{
  "where": {
    "id": "organizationId123"
  }
}

Response

Returned values:

Name
Type
Description

firstName

string

User first name

lastName

string

User last name

roles

JSON

Array of roles

{
	"data": {
		"organization": {
			"agents": [
				{
					"firstName": "Ahmad",
					"lastName": "Carter",
					"roles": [
						"viewer"
					]
				},
				{
					"firstName": "Oda",
					"lastName": "Pfeffer",
					"roles": [
						"signer"
					]
				},
				{
					"firstName": "Fredy",
					"lastName": "Lesch",
					"roles": [
						"admin"
					]
				},
				{
					"firstName": "Earnest",
					"lastName": "Blick",
					"roles": [
						"owner"
					]
				},
			]
		}
	}
}

Try it out!