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

list users that an admin can view/manage #414

Open
muzzol opened this issue May 29, 2024 · 6 comments
Open

list users that an admin can view/manage #414

muzzol opened this issue May 29, 2024 · 6 comments

Comments

@muzzol
Copy link

muzzol commented May 29, 2024

hi,

is there a way to get a list of all users managed by a delegated admin/manager?

I need to filter not by domain but by accounts managed by a single admin.

thanks in advance

@taers232c
Copy link
Owner

taers232c commented May 29, 2024 via email

@muzzol
Copy link
Author

muzzol commented May 30, 2024

thanks a lot for the info.

I can't recall where I read that you can impersonate a user so the api responds like it was called from that user.
is that an option?

@taers232c
Copy link
Owner

taers232c commented May 30, 2024 via email

@muzzol
Copy link
Author

muzzol commented May 30, 2024

ok, I need a quick security check so I just want to know if a user can "see" another one.

what would be the easiest way to check that with gam?

I was trying to use something like: gam user [email protected] print info [email protected]

but that doesn't work as expected.

do you have any suggestion?

@taers232c
Copy link
Owner

taers232c commented May 30, 2024 via email

@muzzol
Copy link
Author

muzzol commented May 30, 2024

exactly.

if I create a new admin and give it permissions to only two OUs when they log in admin.google.com they can only see users belonging to those OUs.

can I replicate that behavious somehow with gam?

maybe with some filtering?

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