**Subject: Issue Retrieving and Assigning Custom Project Roles via API**
ZITADEL distinguishes between:
Project Roles: These are the custom roles you define within a specific project (like "ADMIN1", "SUPPORT"). They are keys that represent a set of permissions relevant to your application's logic. You create these at management/v1/projects/{projectId}/roles.
Project Members / User Grants: This is where you assign a specific user (from your organization or a granted organization) one or more of these defined Project Roles for a given project. When a user is assigned a role in a project, it's essentially a "user grant."
Your initial _search query for /projects/grants/members/roles/_search seems to be for Project Grant Member Roles, which are roles related to a project grant (when one organization grants a project to another organization), not necessarily the custom roles assigned to individual users within your primary project.
0 Replies