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

We could have a way for admins to see everyone's authorizations for a given event #1551

Open
srabraham opened this issue Jan 22, 2025 · 2 comments
Assignees
Labels

Comments

@srabraham
Copy link
Member

I can imagine that an admin might want to know which users have which permissions at a given time. For example, that admin might want to check if the authz code is working properly, or maybe they'd want to be able to confirm on-playa that a given user has the access they need.

Here's a working prototype (no tests yet): https://gist.github.com/srabraham/2c64becfff503eb01ba39e19784a31cd

So, then, we could have links from the admin events page that would show results like the below (linking straight to JSON API responses sounds fine for this purpose).

Anyway, I'm just putting this out there for the time being. I'm interested in feedback as to whether this might actually be useful or just bloat. @wsanchez

{
    "handle": "SomeRanger",
    "status": "active",
    "enabled": false,
    "directory_id": 9090909,
    "authorizations": [
      "Authorization.imsAdmin",
      "Authorization.readPersonnel",
      "Authorization.readIncidents",
      "Authorization.writeIncidents",
      "Authorization.writeFieldReports"
    ]
},
{
    "handle": "SomeOtherRanger",
    "status": "active",
    "enabled": false,
    "directory_id": 11111111,
    "authorizations": []
},
@srabraham srabraham self-assigned this Jan 22, 2025
@srabraham srabraham changed the title Maybe have a way for admins to see everyone's authorizations for a given event Could have a way for admins to see everyone's authorizations for a given event Jan 22, 2025
@srabraham srabraham changed the title Could have a way for admins to see everyone's authorizations for a given event We could have a way for admins to see everyone's authorizations for a given event Jan 22, 2025
@chaoticbear
Copy link
Contributor

I could see in the incident view, a little indicator next to each ranger tagged on an incident indicating wither they have read, write, or reporter access to the event (or incident).

That might be a good way to ensure that if shift command needs more details from someone that they have the appropriate access.

@srabraham
Copy link
Member Author

I could see a longer-term feature like what you're suggesting, @chaoticbear, and especially if we were to have per-incident permissions, as you brought up last week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants