Server: Not able to approve user from admin

Mitigating Issues with User Approval on the CircleCI Server

The server has a feature that requires the admin to approve users before they can use the CircleCI Server. However, there are instances where clicking the approve button does not function properly. This article aims to assist you in resolving this issue.


The following require admin access and ability to access the cluster.

Steps to Mitigate Issues with User Approval on the CircleCI Server:

  1. To access the MongoDB, run the following command: 
    1. kubectl exec mongodb-0 -n <namespace> -it -- bash -c 'mongo --quiet mongodb://${MONGODB_USERNAME}:${MONGODB_ROOT_PASSWORD}@localhost/circle_ghe?authSource=${MONGODB_DATABASE}'
  2. After successfully connecting, run the following command and look for the user that you were unable to approve:
    1. db.identities.find({ "external-info.login": "username" }).pretty()
      db.users.find({ "login": "username" })
  3. While running the above command, search for the username and take note of the external-id of the user. You will find the output as follows:
    1. "external-id" : 10137,
      "external-info" : {
      "name" : "ACCOUNT NAME",
      "login" : "username",
  4. Run the following command to delete the user:
    1. db.users.deleteOne({ "login": "username" })
      db.identities.deleteOne({ "external-id": 10137 }) # Replace the external-id with the previous value.
  5. Finally, ask the user to sign up again, and you should be able to approve the user.
Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.