Organizations
UpdateAuthPolicy
Updates an authentication policy for an organization. Authentication policies define rules for how OIDC tokens are validated and what access they grant, including claim mappings, trust conditions, and role assignments. The policy definition cannot be empty.
The request body contains a policies array where each policy object includes:
- decision: allow or deny
- tokenType: organization, team, personal, or runner
- teamName: required when tokenType is team
- userLogin: required when tokenType is personal
- runnerID: required when tokenType is runner
- authorizedPermissions: array of permissions (only admin is supported for organization tokens)
- rules: object defining claim-matching rules for the token
For more information about authorization rules, refer to the OIDC authorization policies documentation.
patch/api/orgs/{orgName}/auth/policies/{policyId}
Request
- Base URL: https://api.pulumi.com (the document declares no server; this is the origin it was published from)
- URL: https://api.pulumi.com/api/orgs/{orgName}/auth/policies/{policyId}
- Auth: none declared
Path parameters
orgNamestring required
The organization name
policyIdstring required
The policy identifier
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.