Skip to content

In assign role dialog, the filter dropdown is missing when having only manage-user role #22079

Closed

Description

@joggeli34

Before reporting an issue

Area

admin/ui

Describe the bug

When having a user with "realm-management / manage-users" role and open the assign role dialog for a user or a group then the filter dropdown is not visible:

image

This leads to the problem, that only client-roles and no realm roles can be applied.

Version

22.0.1

Expected behavior

The filter dropdown should be visible always, when the dialog can be open:
image

Actual behavior

Missing filter:

image

How to Reproduce?

Create a user for the realm with "realm-management / manage-users" role and try to apply a role to an existing user

Anything else?

No response

Activity

  1. added
    kind/bug
    on Jul 28, 2023
  2. ghost added
    area/admin/ui
    on Jul 28, 2023
  3. ssilvert commented on Jul 30, 2023

    @ssilvert
    Contributor

    We did just recently change the UI for this, but it is working as designed. In order to assign realm roles, you must have at least "view-realm" access. So the UI now reflects that.

  4. ssilvert commented on Jul 30, 2023

    @ssilvert
    Contributor

    Hmm. I took another look and you should also be allowed to assign realm roles if you have "query-users" access.

    However, "manage-users" alone isn't enough. Strangely, "manage-users" does not include "query-users".

    I'm going to make the change so that you can assign realm roles with "query-users" access. Hope that fixes your problem.

  5. self-assigned this
    on Jul 30, 2023
  6. added a commit that references this issue on Jul 30, 2023
    fd8e7d8
  7. joggeli34 commented on Jul 31, 2023

    @joggeli34
    ContributorAuthor

    Yes this will fix our problem, as we indeed also have the "view-users" role which includes "query-users" and "query-groups".
    thanx

  8. added this to the 22.0.2 milestone on Aug 1, 2023
  9. added a commit that references this issue on Aug 3, 2023
    fa5ddf9
  10. added a commit that references this issue on Aug 21, 2023
    93b0c25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/admin/uikind/bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions