Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • C carbon-device-mgt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 18
    • Merge requests 18
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • entgraentgra
  • carbon-device-mgt
  • Merge requests
  • !901

Fix admin role not assigned issue during admin user creation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Vigneshan requested to merge vigneshan/carbon-device-mgt:fix/admin-user-role-assignment-issue into master Jun 16, 2022
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Purpose

The current APIs look for Internal/devimgt-admin role to invoke admin APIs. When creating users via endpoint-mgt, the user get assigned only the admin role. This results in the admin not being able to invoke admin APIs inside the portal.

Approach

Add an additional check inside addUser API whether admin role has been added inside the payload for the user who is being created and attach the role 'Internal/devicemgt-admin'.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/admin-user-role-assignment-issue