List all groups that a specific user belongs to in your Vultr organization. View group memberships and inherited permissions for any user through the IAM API.
Listing groups for a specific user shows all groups that the user belongs to. This is useful for administrators to audit a user's group memberships and understand the permissions they inherit through those groups.
This guide explains how to list groups for a user using the Vultr Console and the Vultr API.
Log in to the Vultr Console.
Click the organization name in the top navigation bar.
Click Manage Organization.
Click the Users tab.
Click the name of the user you want to inspect.
Expand the Groups section.
The section displays all groups the user belongs to.
Identify the user_id of the user. Follow the steps in How to List All Users in an Organization to retrieve user IDs.
Send a GET request to the List User's Groups endpoint to retrieve all groups for the user. Replace {user-id} with the id of the user.
$ curl "https://api.vultr.com/v2/users/{user-id}/groups" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
The response contains the requested resources.