-
Does FusionAuth provide an API to import roles for an application?
-
FusionAuth does not currently offer an API specifically for importing roles in bulk. However, roles can be created for an application using the following approaches:
- Create a Single Role via API:
Use the POST /api/application/{applicationId}/role endpoint to create roles individually.
Documentation: Create an Application Role - Create Multiple Roles During Application Creation:
When creating an application via the POST /api/application endpoint, you can define multiple roles as part of the application configuration. This is the most efficient way to set up multiple roles at once if you are creating a new application.
While there isn’t a dedicated role import API, combining these endpoints allows flexibility in managing roles programmatically.
- Create a Single Role via API:
-
W wesley has marked this topic as solved on
-
W wesley has marked this topic as unsolved on
-
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login