Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why root admin is only able to see the main default froup ? is there a way to make other admin to see default group ? #734

Open
didental opened this issue Dec 1, 2023 · 1 comment

Comments

@didental
Copy link

didental commented Dec 1, 2023

It's replica form openstf#1333.

Hey ,

I observed that a root admin is only able to see the default group (Example : 'common') but other admins are not able to see this root group or group created by other admins .
So i have a two part question.

  1. is there a way to make multiple root admins ?
  2. how to make the root default group visible to users who all have admin privileges ?

But I have another question.
3. How to change admin account? (I tried to change the variable on .env file: STF_ADMIN_NAME but it was not changed. Still 'common''s admin account is default owner of new group)

@denis99999
Copy link

denis99999 commented Dec 4, 2023

@didental , most of your questions have their response in the Readme.md and GroupFeature.pdf documentation:

I observed that a root admin is only able to see the default group (Example : 'common')

No, the administator user sees all groups of all users, and all users including the administrator one see the root standard group (default name equal to Common)! What DeviceFarmer/STF version are you using ?

but other admins are not able to see this root group or group created by other admins

There is only one administrator user and trying to patch the rethinkdb user table to make other administrator users, will lead to an inconsistency system.
When a simple user makes a reservation by creating a new group, only him and the administrator user see this group until he adds other users in his group.

  1. is there a way to make multiple root admins ?

No because it will lead to an inconsistency system.

  1. how to make the root default group visible to users who all have admin privileges ?

N/A => there is only one administrator user, but all users see the Common group

  1. How to change admin account? (I tried to change the variable on .env file: STF_ADMIN_NAME but it was not changed. Still 'common''s admin account is default owner of new group)

Currently, you have the possiblility to choose the properties of built-in objects (i.e. administrator user and root standard group) at database creation step only, so if you want to change these built-in objets after this step you have de rebuild the database (i.e. remove it then recreate it), but I prepare a pull request to make these crucial changes without the need to remove the database, nervertheless it will require to stop STF and the database to do this operation and then restart them.

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

No branches or pull requests

2 participants