How do you create a read-only role scoped to one project?
Short answer
Define policy lines granting only get on that project's apps: `p, role:viewer-a, applications, get, team-a/*, allow`, then bind users/groups with a g line. They can view team-a apps but not sync or modify them, and nothing outside the project.
Advertisement
AModel answer
Define policy lines granting only get on that project's apps: `p, role:viewer-a, applications, get, team-a/*, allow`, then bind users/groups with a g line. They can view team-a apps but not sync or modify them, and nothing outside the project.
Example
p, role:viewer-a, applications, get, team-a/*, allow g, team-a-viewers, role:viewer-a
Real-world example
Auditors get read-only visibility into team A's apps without any change rights.
Likely follow-ups
- What action gives view-only? | How do you scope to one project?
Related topics