API Stability Long-Term

The createOrganizationPermissionsToken() GraphQL mutation field is used to create an organization permissions token for organizational-level access.

For more information on organization settings, see the Organization Settings documentation page. You may also want to look at the Manage users & permissions page for related information. For information on access tokens of various types, see the Ingest Tokens documentation page.

hosted-logscale-organization-settings

Syntax

Below is the syntax for the createOrganizationPermissionsToken() mutation field:

graphql
createOrganizationPermissionsToken(
      input: CreateOrganizationPermissionTokenInput!
   ): string!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  createOrganizationPermissionsToken(input:
         {name: "key-people",
          expireAt: null,
          permissions: [ManageUsers, ViewFleetManagement, ChangeFleetManagement ]
        } )
}
Example Responses
Show:
json
{
  "data": {
    "createOrganizationPermissionsToken": "odL25fMzpqOo03EpUzUiJUYdca47hXCQ~PmgMBNFdzt1oO6S9GLRLx2ViWimbBkekFgps8cEQIzX1"
  }
}

Given Datatypes

For CreateOrganizationPermissionTokenInput, there are a few parameters that may be given. Below is a list of them along with descriptions of each:

Table: CreateOrganizationPermissionTokenInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 17, 2024
expireAtlong  Long-TermWhen the organization permission token will expire.
ipFilterIdstring  Long-TermThe unique identifier for the related IP filter.
namestringyes Long-TermThe name of the organization token.
permissions[OrganizationPermission]yes Long-TermA list of permissions for the organization. See OrganizationPermission.