Discover which assumable Vultr IAM roles a user can activate based on their trust relationships, via the API.
Listing the roles a user can assume allows you to see all assumable roles that have a trust relationship granting the user access. This is useful for understanding what elevated permissions a user can temporarily activate.
This guide explains how to list roles a user can assume using the Vultr API.
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 Assumable Roles endpoint to retrieve all roles the user can assume. Replace {user-id} with the id of the user.
The response contains the requested resources.
0 Comments
Be the first to comment and share your perspective with the community.