Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-3943

Fetch dedicated user/group authorizations instead of fetching all authorizations at once

    XMLWordPrintable

Details

    Description

      Context:
      When a user logs in to Optimize, we fetch all their authorizations to be able to check for which process/decision definitions they're authorized to. However, instead of fetching all authorizations at once we could just use the query parameters to filter for user/group authorizations. See https://docs.camunda.org/manual/7.13/reference/rest/authorization/get-query/ for more information.

      Note: you can't query for userIdIn and groupIdIn at the same time because then you get:

      Unknown macro: { "type"}

      So we should evaluate if it still makes sense to do 2 requests instead of one. Especially, in a multi-engine environment that could increase the request count quite a bit.

      Alternative: instead we could ask the engine team to allow querying for both or add an Optimize endpoint.

      AT:

      • instead of fetching all the user authorizations Optimize fetches only the authorizations related to a user

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                johannes.heinemann Johannes
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce