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

As a user, I want to see role details for roles that are assigned to users and groups #2765

Closed
newswangerd opened this issue May 24, 2022 · 0 comments · Fixed by #2766
Closed

Comments

@newswangerd
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The group and user role lists currently look like this:

{
    "pulp_href": "/pulp/api/v3/groups/3/roles/6205b617-b825-4d89-a87f-433795bb6248/",
    "pulp_created": "2022-05-24T18:31:33.683333Z",
    "role": "_permission:container.add_containernamespace",
    "content_object": null,
},

The role name is included, but the permissions and description for the role are missing. It would be nice to be able to browse the API and see exactly what permissions a user or group has for each role.

Describe the solution you'd like
Add the role description and permissions to the serializer.

{
    "pulp_href": "/pulp/api/v3/groups/3/roles/6205b617-b825-4d89-a87f-433795bb6248/",
    "pulp_created": "2022-05-24T18:31:33.683333Z",
    "role": "_permission:container.add_containernamespace",
    "content_object": null,
    "description": "Auto generated role for permission container.add_containernamespace.",
    "permissions": [
        "container.add_containernamespace"
    ]
},
newswangerd added a commit to newswangerd/pulpcore that referenced this issue May 24, 2022
newswangerd added a commit to newswangerd/pulpcore that referenced this issue May 24, 2022
@newswangerd newswangerd changed the title As a user, I want to role details for roles that are assigned to users and groups As a user, I want to see role details for roles that are assigned to users and groups May 25, 2022
newswangerd added a commit to newswangerd/pulpcore that referenced this issue May 31, 2022
newswangerd added a commit to newswangerd/pulpcore that referenced this issue May 31, 2022
mdellweg pushed a commit that referenced this issue Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants