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

Find the group to which the user belongs #2238

Closed
santoshbalaraj opened this issue Jan 12, 2021 · 2 comments
Closed

Find the group to which the user belongs #2238

santoshbalaraj opened this issue Jan 12, 2021 · 2 comments

Comments

@santoshbalaraj
Copy link

We have a use case wherein we need to check if the logged in user belong to an administrator group within the vCenter.
If there any API which can return the information of user, the information is mainly on the group, roles etc.

I have checked the retrieveUserGroups API but that does not tell whether user belongs to a particular group.

Can I please get some pointers in getting the information of the logged in users.

@dougm
Copy link
Member

dougm commented Jan 13, 2021

retrieveUserGroups is only for ESX, not vCenter.

This might be what you're looking for, from the govc sso.user.id command: https://github.com/vmware/govmomi/blob/master/govc/sso/user/id.go#L108

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment /remove-lifecycle stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants