Interview Prep/GitOps & Argo CD/Repos, Clusters, Projects & Permissions

A user clicks Sync and gets `rpc error: code = PermissionDenied desc = permission denied: applications, sync, team-a/web, sub: [email protected]`.

IntermediateTroubleshootingRepos, Clusters, Projects & Permissions
Answer

Likely causes → No RBAC policy grants sync on that project, the user's SSO group name does not match the group in policy.csv, or scopes in argocd-rbac-cm does not include the claim that carries groups.

Diagnose →

argocd account get-user-info                       # shows the groups Argo CD sees
argocd admin settings rbac can [email protected] sync applications 'team-a/web' \
  --policy-file policy.csv

Fix → Add p, role:team-a-dev, applications, sync, team-a/*, allow and g, <exact-group-name>, role:team-a-dev. Set scopes: '[groups, email]' if groups are missing.

Prevent → Test RBAC changes in CI with argocd admin settings rbac validate.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Repos, Clusters, Projects & Permissions