Configure application permissions¶
Query current-principal roles and the permission schema, validate an application permission policy, then apply it. This page does not configure data-resource or object grants.
Prerequisites¶
Prepare credentials that can access the target workspace and the permission policy to apply. For service endpoints, authentication, and general request formats, see Make your first AI Studio API call.
Before applying the policy, confirm the current-principal roles and available permission schema, then validate the policy content.
Call sequence¶
Get current-principal roles to confirm the calling identity.
Get the permission schema and prepare a policy that matches it.
Use Validate application permission policy to check the policy.
After validation, apply the policy and query current-principal roles again to confirm observable role results.
API operations¶
Query, validate, and apply policies¶
Task |
Use it when |
|---|---|
Confirm roles for the current calling identity before or after applying a policy. |
|
Learn the available schema before preparing a policy. |
|
Check a policy to submit before applying it. |
|
Submit an application permission policy after validation. |
Confirm the result¶
After applying the policy, use Get current-principal roles to confirm observable role information for the current calling identity.