curl --request POST \
  --url https://{domain}-be.glean.com/rest/api/v1/teams \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    "abc123"
  ]
}'
{
  "results": [
    {
      "relatedObjects": {},
      "permissions": {
        "write": {
          "scopeType": "GLOBAL",
          "create": true,
          "update": true,
          "delete": true
        }
      },
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "businessUnit": "<string>",
      "department": "<string>",
      "photoUrl": "<string>",
      "bannerUrl": "<string>",
      "externalLink": "<string>",
      "members": [
        {
          "person": {
            "name": "George Clooney",
            "obfuscatedId": "abc123"
          },
          "relationship": "MEMBER",
          "customRelationshipStr": "<string>",
          "joinDate": "2023-11-07T05:31:56Z"
        }
      ],
      "memberCount": 123,
      "emails": [
        {
          "email": "jsmith@example.com",
          "type": "OTHER",
          "isUserGenerated": true
        }
      ],
      "datasourceProfiles": [
        {
          "datasource": "github",
          "handle": "<string>",
          "url": "<string>",
          "nativeAppUrl": "<string>",
          "isUserGenerated": true
        }
      ],
      "datasource": "<string>",
      "createdFrom": "<string>",
      "lastUpdatedAt": "2023-11-07T05:31:56Z",
      "status": "PROCESSED",
      "canBeDeleted": true,
      "loggingId": "<string>"
    }
  ],
  "errors": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Scio-Actas
string

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

Body

application/json
Teams request
ids
string[]

The IDs of the teams to retrieve.

includeFields
enum<string>[]

List of teams fields to return that aren't returned by default

Available options:
TEAMS_DETAILS

Response

200
application/json
OK
results
object[]

A Team and a deep copy of all its members for each ID in the request

errors
string[]

A list of IDs that could not be found.