• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

How to Manage Application Roles in FusionAuth Without a Bulk Import API

Scheduled Pinned Locked Moved Unsolved
Q&A
api
1
2
836
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    wesley
    last edited by 30 Dec 2024, 20:17

    Does FusionAuth provide an API to import roles for an application?

    W 1 Reply Last reply 30 Dec 2024, 20:19 Reply Quote 1
    • W
      wesley @wesley
      last edited by 30 Dec 2024, 20:19

      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.

      1 Reply Last reply Reply Quote 0
      • W wesley has marked this topic as solved on 30 Dec 2024, 20:19
      • W wesley has marked this topic as unsolved 12 days ago
      2 out of 2
      • First post
        2/2
        Last post