GET
/
api
/
v2
/
workspace
/
{projectId}
/
identity-memberships
curl --request GET \
  --url https://us.infisical.com/api/v2/workspace/{projectId}/identity-memberships \
  --header 'Authorization: Bearer <token>'
{
  "identityMemberships": [
    {
      "id": "<string>",
      "identityId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "roles": [
        {
          "id": "<string>",
          "role": "<string>",
          "customRoleId": "<string>",
          "customRoleName": "<string>",
          "customRoleSlug": "<string>",
          "isTemporary": true,
          "temporaryMode": "<string>",
          "temporaryRange": "<string>",
          "temporaryAccessStartTime": "2023-11-07T05:31:56Z",
          "temporaryAccessEndTime": "2023-11-07T05:31:56Z"
        }
      ],
      "identity": {
        "name": "<string>",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "authMethods": [
          "<string>"
        ]
      },
      "project": {
        "name": "<string>",
        "id": "<string>"
      }
    }
  ],
  "totalCount": 123
}

Authorizations

Authorization
string
header
required

An access token in Infisical

Path Parameters

projectId
string
required

The ID of the project to get identity memberships from.

Query Parameters

offset
number
default:
0

The offset to start from. If you enter 10, it will start from the 10th identity membership.

Required range: x > 0
limit
number
default:
100

The number of identity memberships to return.

Required range: 1 < x < 20000
orderBy
enum<string>
default:
name

The column to order identity memberships by.

Available options:
name
orderDirection
enum<string>
default:
asc

The direction identity memberships will be sorted in.

Available options:
asc,
desc

The text string that identity membership names will be filtered by.

Response

200
application/json
Default Response
identityMemberships
object[]
required
totalCount
number
required