Skip to content

Return `is_admin` attribute in the GET /user endpoint for admins

Rémy Coutable requested to merge 34325-reinstate-is_admin-for-user-api into master

What does this MR do?

This re-adds the is_admin attribute to the GET /user API endpoint when the current user is an admin.

Are there points in the code the reviewer needs to double check?

This keeps the logic of returning the private_token only when SUDO is used.

Why was this MR needed?

Because this broke some user workflows, see #33260 (closed).

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #34325 (closed)

Note: Ideally, this should be picked into %9.3, if we release any new 9.3 patch.

Merge request reports