Skip to content

Conversation

@msukkari
Copy link
Contributor

Adds new ee API endpoints to allow Sourcebot admins to list users and delete a user

GET {{sourcebot_web_url}}/api/ee/users lists all users. Returns an array of JSON objects:

[
    {
        "id": "cmh8m66ly0002xg0z53596t39",
        "name": "Michael Sukkarieh",
        "email": "redacted",
        "role": "OWNER",
        "createdAt": "2025-10-27T04:04:39.286Z",
        "lastActivityAt": "2025-10-28T23:42:19.866Z"
    },
    {
        "id": "cmhb7qv8t000txgjdx0sxcu5e",
        "name": null,
        "email": "redacted",
        "role": "MEMBER",
        "createdAt": "2025-10-28T23:44:08.621Z",
        "lastActivityAt": "2025-10-28T23:44:21.484Z"
    }
]

DELETE {{sourcebot_web_url}}/api/ee/user?userId={{target_user_id}}

A deleted user is completely removed from the DB and will immediately lose access to the Sourcebot deployment

@coderabbitai
Copy link

coderabbitai bot commented Oct 28, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch msukkarieh/management_api

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

This comment has been minimized.

@msukkari msukkari merged commit 3ff88da into main Oct 29, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants