Skip to main content
GET
/
api
/
v2
/
user-groups:get-for-assets
GetUserGroupsForAssets
curl --request GET \
  --url https://your-sift-api-url.com/api/v2/user-groups:get-for-assets \
  --header 'Authorization: Bearer <token>'
{
  "userGroups": [
    {
      "userGroupId": "<string>",
      "name": "<string>",
      "roleId": "<string>",
      "isDefault": true,
      "resources": {
        "assetIds": [
          "<string>"
        ],
        "allAssets": true
      },
      "userIds": [
        "<string>"
      ],
      "isExternal": true
    }
  ],
  "roles": [
    {
      "roleId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "roleOrder": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

assetIds
string[]
required

Response

A successful response.

userGroups
object[]
required
roles
object[]
required