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

Include the User's role as part of the FF User object #21

Closed
2 tasks
joepavitt opened this issue Feb 26, 2025 · 5 comments
Closed
2 tasks

Include the User's role as part of the FF User object #21

joepavitt opened this issue Feb 26, 2025 · 5 comments
Assignees

Comments

@joepavitt
Copy link
Collaborator

joepavitt commented Feb 26, 2025

Requested by https://app-eu1.hubspot.com/help-desk/26586079/view/233410279/ticket/81753305284/thread/10024322274#email

Authorisation within the Dashboard logic can be easier managed and maintained by exposing the FF roles, such that logic can be defined to permit access accordingly.

Implemented via:

@joepavitt
Copy link
Collaborator Author

Adding to 2.15, as this may be a 10 minute task, if it is, we can ship imminently.

@joepavitt joepavitt moved this to Todo in 🛠 Development Feb 26, 2025
@joepavitt joepavitt moved this from Todo to Up Next in 🛠 Development Mar 4, 2025
@knolleary
Copy link
Member

It's a 60 minute task rather than 10 minute task.

Currently our auth plugin gets the user profile information via an authenticated call to /api/v1/user. This is not in context of a team, so cannot include team role information. We'll need to add a second call to /api/v1/teams/:teamId/user which returns:

{"role":50}

which we can then map back to the role description.

@knolleary knolleary moved this from Up Next to In Progress in 🛠 Development Mar 5, 2025
@knolleary
Copy link
Member

Image

@knolleary
Copy link
Member

PR's raised against both launcher and device-agent.

@knolleary
Copy link
Member

I'm going to close this as the required updates have been merged to launcher (for hosted) and device agent (for remote).

Launcher update will be available on FFC as part of the stack update in this week's release.

New Device Agent will be published this week.

@github-project-automation github-project-automation bot moved this from Review to Done in 🛠 Development Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants