Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RBAC] Make examples in rbac.md for client usage fully complete #226

Open
AlanCoding opened this issue Mar 18, 2024 · 2 comments
Open

[RBAC] Make examples in rbac.md for client usage fully complete #226

AlanCoding opened this issue Mar 18, 2024 · 2 comments
Labels
app:rbac documentation Improvements or additions to documentation

Comments

@AlanCoding
Copy link
Member

followup from

#45 (comment)

#45 (comment)

@AlanCoding
Copy link
Member Author

also maybe #45 (comment)

@AlanCoding
Copy link
Member Author

pasting from links

POST /api/v1/role_definition/ with payload

{
    "permissions": ["view_inventory"],
    "content_type": "shared.organization",
    "name": "View all org inventories",
    "description": "Custom Org Role"
}

Then do a second POST to /api/v1/role_team_assignments/ (or role_user_assignments) with a payload of:

{
    "role_definition": <id of the role created>,
    "object_id": <id of the org>,
    "team": 2
}

Maybe add a link in here reminding that you defined rd as pointing to job templates to guide users as to why this allows all JTs in an organization.

Reminder that rd is a org-type role (not job template) and lists JT permissions.

@AlanCoding AlanCoding added the documentation Improvements or additions to documentation label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:rbac documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant