Skip to content

Specific error messages for deactivated users?

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

If a user is deactivated, they will receive errors when using the GraphQL API. This error message is fairly generic - a basic forbidden basically - but could be more helpful, since there is something the user can do.

Suggested by @cablett :

Should we make this consistent with the REST API error message?

> `Your account has been deactivated by your administrator. Please log back in from a web browser to reactivate your account at <url>`

This requires changes to the error handling, and specific paths for deactivated users, since the current logic is unable to distinguish this.

This would be another good motivation for https://gitlab.com/gitlab-org/declarative-policy/-/issues/16

Edited by 🤖 GitLab Bot 🤖