IBM · Arazzo Workflow
IBM Cloud IAM Change the Roles on an Existing Policy
Version 1.0.0
Read a policy, resolve the target role CRN from the service, and replace the policy's roles.
View Spec
View on GitHub
API ManagementArtificial IntelligenceBillingCloud ComputingContainersData GovernanceDatabasesDevOpsEnterpriseGenerative AIHybrid CloudInfrastructureMachine LearningNetworkingObservabilitySecurityServerlessStorageWatsonWatsonxFortune 100ArazzoWorkflows
Provider
Workflows
change-policy-roles
Replace an existing policy's roles while preserving its subjects and resources.
Reads the current policy, lists the roles available for the service to confirm the target role CRN is grantable, and replaces the policy with the new role bound to the original subjects and resources.
1
readCurrentPolicy
getPolicy
Read the policy as it stands. The subjects and resources captured here are carried through the replace unchanged — this step is what prevents the replace from silently rebinding or orphaning the grant.
2
resolveTargetRole
listRoles
List the roles the service exposes so the incoming role CRN can be checked against what is actually grantable, rather than discovering it is invalid when the replace rejects the whole policy.
3
replacePolicyRoles
replacePolicy
Replace the policy with the new role, reusing the type, subjects, and resources read from the live policy. Everything not restated in this body is lost, which is why nothing here is reconstructed from assumptions.