Navigation

    FusionAuth
    • Login
    • Search
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    1. Home
    2. Tags
    3. entities
    Log in to post
    • All categories
    • A

      UNSOLVED Connectivity pricing questions
      Q&A • pricing entities sales client creds • • arjunyel

      2
      0
      Votes
      2
      Posts
      220
      Views

      dan

      @arjunyel

      Connectors are documented here: https://fusionauth.io/docs/v1/tech/connectors/

      Machine to machine auth is the client credentials grant: https://fusionauth.io/docs/v1/tech/oauth/#example-client-credentials-grant

      Does 100 Machine To Machine Auth mean you can have 100 API entities?

      Yes, that is correct.

    • N

      How to create entities with parents?
      Comments & Feedback • grant entities • • nikhil.shrivastav

      2
      0
      Votes
      2
      Posts
      257
      Views

      joshua

      @nikhil-shrivastav

      Thanks for the question. I have addressed in our support other related support thread.

      Thanks
      Josh

    • dan

      UNSOLVED I want to allow every user with a role to be granted access to all entities of a given type
      Q&A • entities grants users • • dan

      2
      0
      Votes
      2
      Posts
      228
      Views

      dan

      I'd use a webhook to provision/deprovision the grants.

      https://fusionauth.io/docs/v1/tech/events-webhooks/events/user-registration-create-complete/ has the roles for the application, so in the webhook, you can call the FusionAuth grant API to create or revoke the grant.

      For initial setup, run a script to get all the users that have a given role (using a user search query) and then grant them access to all the entities.

      Think about what happens when a new piece of equipment is added. From what I gather, all users with the "viewer" role will need to be granted access to that equipment. You can take care that of within the 'new equipment added' script: provision the equipment, then add the grant to all users with the "viewer" role.

      Depending on when you are going to check the grant and the number of users and pieces of equipment, this may be a good thing to use a queue like SQS for, to add/revoke/update grants asynchronously.

    • dan

      Can I get permissions granted to a user against an Entity in an OAuth grant
      Q&A • entities authorization code grant • • dan

      3
      0
      Votes
      3
      Posts
      378
      Views

      dan

      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.