Navigation

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

    Can I get permissions granted to a user against an Entity in an OAuth grant

    Q&A
    entities authorization code grant
    1
    3
    344
    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.
    • dan
      dan last edited by

      I create an entity, then granted a user access to that entity using the API.

      Is there a way I can get those entity permissions in authorization code grant?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • dan
        dan last edited by

        Not at the current time.

        You can of course use the API to retrieve the grants against your entity and you can search for all entities a user has been granted pemissions on, but this is not currently part of any OAuth grants.

        Please file an issue outlining your use case if you'd like support to be added.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        dan 1 Reply Last reply Reply Quote 0
        • dan
          dan @dan last edited by

          The ability to search grants for a user was a gap in our documentation. We have since released an update to showcase/describe the use case.

          https://fusionauth.io/docs/v1/tech/apis/entity-management/grants/#search-for-grants

          Your API endpoint call will look like below:

          GET /api/entity/grant/search?userId={uuid}
          

          Additional possible filtering functionality is documented in this feature request.

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

          1 Reply Last reply Reply Quote 0
          • First post
            Last post