List all policies directly attached to the currently authenticated user in Vultr IAM. View your own permission rules and access controls through the IAM API.
Listing the current user's policies shows all policies that apply to the authenticated user, including those assigned directly, inherited through roles, and inherited through groups. This provides a complete view of your effective permissions.
This guide explains how to list the current user's policies using the Vultr API.
Send a GET request to the List Current User's Policies endpoint to retrieve all policies for the authenticated user.
$ curl "https://api.vultr.com/v2/users/me/policies" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
The response contains the requested resources.