Skip to content

Bug: user fetch list does not supports managers access provided by groups #2357

@kartik-579

Description

@kartik-579

📜 Description

User must be authorised to fetch user list when they have super admin or manager access. Although, this works for direct permisssions but breaks for manager access that are provided through user groups.

👟 Reproduction steps

Give a user manager permission through permission group and ensure the user does not have direct manager permissions. The api for fetching user list will give forbidden error.

👍 Expected behavior

The user must be able to access the user list fetch api even with group-manager permissions.

👎 Actual Behavior

Not able to pass the api authorization.

💻 Device

Desktop/Laptop

💻 Operating system

MacOS

🌍 Browser

Chrome

🧱 Your Environment

No response

✅ Proposed Solution

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find any similar issue

🏢 Have you read the Code of Conduct?

AB#508

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions