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.
More on Repos, Clusters, Projects & Permissions
Adding a private GitHub repo over HTTPS fails with `rpc error: code = Unknown desc = authentication required`.BeginnerAn SSH repo fails with `ssh: handshake failed: knownhosts: key is unknown`.BeginnerSSH repo: `ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain`.BeginnerA self-hosted GitLab repo fails with `x509: certificate signed by unknown authority`.IntermediateA credential template exists for `https://github.com/org`, yet new repos under the org still fail with `authentication required`.IntermediateSync fails with `application repo https://github.com/org/payments-config.git is not permitted in project 'team-a'`.Beginner