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 Solved
    Q&A
    api
    1
    2
    556
    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

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

      W 1 Reply Last reply Reply Quote 1
      • W
        wesley @wesley
        last edited by

        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
        • First post
          Last post