Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active December 11, 2023 16:28
Show Gist options
  • Select an option

  • Save wilmoore/04acfa8b02bc753a6bc6508ea90d7d3e to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/04acfa8b02bc753a6bc6508ea90d7d3e to your computer and use it in GitHub Desktop.
Income Sources :: Jobs :: 2022 :: HP :: Lens :: Repos :: poly-glass :: team-mo :: tooling :: silica-local-cloud :: GraphQL

Income Sources :: Jobs :: 2022 :: HP :: Lens :: Repos :: poly-glass :: team-mo :: tooling :: silica-local-cloud :: GraphQL

⪼ Made with 💜 by Polyglot.

related

...

Errors

GraphQL Error: activeLicenseTypes

image

GraphQL Error: Microsoft tenant already claimed by another Lens tenant.

image

GraphQL

query {
  accessor {
    id
    grants {
      resourceId
      resourceType
      roles {
        name
      }
      permissions {
        name
      }
    }
  }
}

Response

{
  "data": {
    "accessor": {
      "id": "oauth2|Microsoft|d9ba3bfa-f92a-4e98-b307-82ae7b52f139",
      "grants": [
        {
          "resourceId": "6ee62937-e300-4155-8bfc-1de026cdf1b9",
          "resourceType": "Tenant",
          "roles": [
            {
              "name": "admin"
            }
          ],
          "permissions": []
        },
        {
          "resourceId": "*",
          "resourceType": "*",
          "roles": [],
          "permissions": [
            {
              "name": "*"
            },
            {
              "name": "teams-integration:update"
            },
            {
              "name": "teams-integration:manage"
            },
            {
              "name": "telemetry-config:manage"
            }
          ]
        },
        {
          "resourceId": "com.poly.lens.eng.tool",
          "resourceType": "Feature",
          "roles": [
            {
              "name": "let-engineering"
            },
            {
              "name": "let-devops"
            },
            {
              "name": "let-support"
            }
          ],
          "permissions": []
        }
      ]
    }
  }
}

GraphQL

Operation
mutation($input: CreateTenantInput!) {
  createTenant(input: $input) {
    tenant {
      id
      name
    }
  }
}
Variables
{
  "input": {
    "name": "whateverbro"
  }
}
Response
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment