dremio-professional-services / dremio-cloner

27 stars 20 forks source link

Allow non-admin users to run the tool #42

Open AndyHunt66 opened 10 months ago

AndyHunt66 commented 10 months ago

In version 24.1.0, DX-60480 was fixed, which prevents non-admin users from using /api/v3/users/{id} (unless they've also got the create user privilege). This causes Cloner to fail with

{
    "errorMessage": "User not allowed to get details of other user",
    "moreInfo": ""
}

The workaround is to assign the user GRANT CREATE USER ON SYSTEM TO USER <username> but some people don't want to allow CI/CD teams to create users.

The request is to change the cloner tool to use APIs that are runnable by non-admin users and users who don't have the CREATE USER privilege.