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 Prepare to call an API.
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¶
What you need to do |
API operation |
Use it when |
|---|---|---|
Query current-principal roles |
Confirm roles for the current calling identity before or after applying a policy. |
|
Query the permission schema |
Learn the available schema before preparing a policy. |
|
Validate an application permission policy |
Check a policy to submit before applying it. |
|
Apply a permission policy |
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.