How to List Active Assumed Role Sessions for a User

Updated on 08 April, 2026

List all active assumed role sessions for a specific user in Vultr IAM. View session details including role, expiry time, and status through the IAM API.


Listing active assumed role sessions for a user allows you to see all roles the user is currently assuming, along with session details such as expiration times and remaining duration. This is useful for auditing active elevated access and managing session lifecycles.

This guide explains how to list active assumed role sessions for a user using the Vultr API.

  1. Identify the user_id of the user. Follow the steps in How to List All Users in an Organization to retrieve user IDs.

  2. Send a GET request to the List Assumed Role Sessions endpoint to retrieve all active sessions for the user. Replace {user-id} with the id of the user.

    console
    $ curl "https://api.vultr.com/v2/assumed-roles/users/{user-id}/sessions" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    

    The response contains the requested resources.

Comments