Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

Search Project Roles

Deprecated: use project v2 service ListProjectRoles instead.

Returns all roles of a project matching the search query.

POST
/management/v1/projects/{project_id}/roles/_search

Path Parameters

project_id*project_id

Request Body

application/json
  1. body
query?

list limitations and ordering

queries?array<|>

criteria the client is looking for

Response Body

Success

application/json
  1. response
details?
result?array<>
Example Request
curl -X POST 'https://example.com/management/v1/projects/string/roles/_search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "details": {    "totalResult": 0,    "processedSequence": 0,    "viewTimestamp": "2023-01-15T01:30:15.01Z"  },  "result": [    {      "key": "string",      "details": {        "sequence": 0,        "creationDate": "2023-01-15T01:30:15.01Z",        "changeDate": "2023-01-15T01:30:15.01Z",        "resourceOwner": "string"      },      "displayName": "string",      "group": "string"    }  ]}

Was this page helpful?