Manage roles and inheritance¶
Query and maintain roles, role lifecycles, and inheritance relationships. Check permissions, ownership, and deletion impact before deleting or changing roles. This page does not bind roles to specific users.
Prerequisites¶
Prepare credentials that can access the target workspace and the target role ID. For service endpoints, authentication, and general request formats, see Make your first AI Studio API call.
Before changing inheritance or deleting a role, query the role list, inheritance relationships, and related impact information.
Call sequence¶
First list roles to identify the target role.
To understand current relationships, query inheritance relationships, the inheritance graph, and the permission view.
After adding or removing inheritance, query inheritance relationships again. After updating a role or lifecycle, query the role list to confirm the result.
Before deletion, query deletion and ownership impact, then confirm conditions and results on the action page.
API operations¶
Query roles, relationships, and impact¶
Task |
Use it when |
|---|---|
Select a target role or confirm a change. |
|
View inheritance relationships before or after changes. |
|
View the inheritance relationship graph. |
|
Confirm role permissions before changes. |
|
View role audit events. |
|
Confirm deletion impact before deleting a role. |
|
Confirm ownership impact before deletion or changes. |
Update roles and inheritance¶
Task |
Use it when |
|---|---|
You have the role ID and need to modify it. |
|
Adjust a target role’s lifecycle. |
|
You identified two roles and need to create an inheritance relationship. |
|
Confirm the target inheritance relationship before removing it. |
Delete a role¶
Task |
Use it when |
|---|---|
You confirmed deletion and ownership impact. |
Confirm the result¶
After updating a role or inheritance, use List roles and List role inheritance to confirm the current result. After deletion, use the list to confirm whether the role remains available.
Limitations and notes¶
Deleting roles or changing their lifecycle or inheritance affects related roles. Before proceeding, use the impact actions and confirm conditions and results on the relevant Reference page.