Get Started with Users API

Everything you need to know to get started with the Users API.

Get a Visier Account

To use the APIs, you must have a Visier account with a profile that has the API capability. If you don't have an account, contact your administrator. They will create an account for you with permissions that allow you to view data.

Generate your API key and security token

To make an API request, you will need an API key and a security token. For more information about how to get an API key and request a security token, see API Authentication.

Note: If using Postman to send requests, you can request a security token directly in the tool, see Use Postman to Call Visier APIs.

Choose your tool

To begin working with the Users API you will need to choose a tool to make your first request. This can be Postman or whichever method you usually use to make HTTP requests. For more information about using Postman for your first request, see Use Postman to Call Visier APIs.

Make your first request

To test that you have everything set up correctly, we'll create a request to retrieve all the users in your Visier solution using the /v1/admin/users endpoint. For a complete list of available endpoints, see "Users" in API Reference.

The following sample request retrieves all the users in your Visier tenant. Replace {vanity_name} with your tenant name. The API key is expected as a header, while the security token is expected as a cookie.

Copy
cURL sample request: Retrieve a list of all users
curl -X GET --url 'https://{vanity_name}.api.visier.io/v1/admin/users' \
-H 'apikey:{api_key}' \
-H 'Cookie:VisierASIDToken={security_token}'

If everything was set up correctly and the request was successful, you should see a similar response:

Copy
Sample response
{
    "users": [
        {
            "userId": "02393fdc-3b43-9648-b042-a589a781a9d0",
            "username": "john@jupiter.com",
            "displayName": "Test User 000",
            "accountEnabled": true,
            "employeeId":  "",
            "email": "john@jupiter.com",
            "lastLogin": {
                "timestamp": "1633121685629"
            },  
        },
        {
            "userId": "72a6c22e-76be-a24a-92f7-7cbbed16fd58",
            "username": "richard@jupiter.com",
            "displayName": "Integration Test User 002",
            "accountEnabled": true,
            "employeeId":  "",
            "email": "richard@jupiter.com"
        }
    ]
}

Next steps

Now that you've successfully authenticated and completed your first API request, you're ready to start working with user accounts using the Users API.

To learn more: