Skip to main content

Users

SaaS: Users API (1.0.0)

Download OpenAPI specification:Download

API for interacting with SaaS Users.

Users

Get users

Returns a collection of users.

Authorizations:
bearerAuthbearerAuth
query Parameters
page_size
integer <= 1000
Default: 100

The maximum number of items in the response.

page_number
integer <int64>
Default: 1

The page number.

filter
string
Example: filter=?filter=field1 -eq "abc"

For more information on the available operators and which data types those operators work on, see Filter API call results.

sort
string
Example: sort=?sort=field1:asc

For more information on sorting capability and examples, see Sort API call results.

Responses

Response samples

Content type
application/json
{
  • "pagination": {
    },
  • "items": [
    ]
}

Get user KPIs

Returns a collection of users' key performance indicators.

Authorizations:
bearerAuthbearerAuth
query Parameters
fromDate
required
string
Example: fromDate=2024-05-01T00:00:00Z

The start date from which the historical key performance indicator data should be returned.

toDate
required
string
Example: toDate=2024-06-01T00:00:00Z

The end date to which the historical key performance indicator data should be returned.

Responses

Response samples

Content type
application/json
{
  • "active": 10,
  • "activeChartData": [
    ],
  • "activeTrend": 10,
  • "currentActiveChartData": [
    ],
  • "currentInactiveChartData": [
    ],
  • "currentNoActivityChartData": [
    ],
  • "currentTotalChartData": [
    ],
  • "inactive": 10,
  • "inactiveChartData": [
    ],
  • "inactiveTrend": 10,
  • "noActivity": 10,
  • "noActivityChartData": [
    ],
  • "noActivityTrend": 10,
  • "total": 10,
  • "totalChartData": [
    ],
  • "totalTrend": 10
}

Get user

Returns the details of a user.

Authorizations:
bearerAuthbearerAuth
path Parameters
userId
required
string
Example: a7a75b83-2690-4cc9-b652-a0fbe93dba4a

The unique ID of the user.

Responses

Response samples

Content type
application/json
{
  • "country": "Japan",
  • "createdDate": "2024-05-25T00:00:00Z",
  • "department": "Engineering",
  • "discoveryTypes": [
    ],
  • "displayName": "John Doe",
  • "email": "john.doe@organization.com",
  • "id": "2f86b198-04f3-4770-ad08-b32518206da0",
  • "isEnabled": true,
  • "isInReview": true,
  • "isOnline": true,
  • "isQualified": true,
  • "lastActive": "2024-06-28T00:00:00Z",
  • "licenseCount": 5,
  • "potentialSavings": 500,
  • "status": "Active",
  • "userCostPerMonth": 1000,
  • "username": "john.doe_1@org.com"
}

Update user

Modifies is-in-review, is-online and is-qualified user properties.

Authorizations:
bearerAuth
path Parameters
userId
required
string
Example: a7a75b83-2690-4cc9-b652-a0fbe93dba4a

The unique ID of the user.

Request Body schema: application/merge-patch+json
isOnline
required
boolean

true if user only exists as SaaS user; who does not have a device that is inventoried in your organization. This is common for, for example, consultants and other temporary staff; otherwise, false.

isInReview
required
boolean

true if is user is one you need to analyze further, or as a reminder for taking action on their subscriptions; otherwise, false.

isQualified
required
boolean

true if user is to be included in Snow's services which incur a cost; otherwise, false.

Responses

Request samples

Content type
application/merge-patch+json
{
  • "isOnline": true,
  • "isInReview": true,
  • "isQualified": true
}

Response samples

Content type
application/json
{
  • "country": "Japan",
  • "createdDate": "2024-05-25T00:00:00Z",
  • "department": "Engineering",
  • "discoveryTypes": [
    ],
  • "displayName": "John Doe",
  • "email": "john.doe@organization.com",
  • "id": "2f86b198-04f3-4770-ad08-b32518206da0",
  • "isEnabled": true,
  • "isInReview": true,
  • "isOnline": true,
  • "isQualified": true,
  • "lastActive": "2024-06-28T00:00:00Z",
  • "licenseCount": 5,
  • "potentialSavings": 500,
  • "status": "Active",
  • "userCostPerMonth": 1000,
  • "username": "john.doe_1@org.com"
}

Get user applications

Returns a collection of applications that have been detected as being used by the given user.

Authorizations:
bearerAuthbearerAuth
path Parameters
userId
required
string
Example: a7a75b83-2690-4cc9-b652-a0fbe93dba4a

The unique ID of the user.

query Parameters
page_size
integer <= 1000
Default: 100

The maximum number of items in the response.

page_number
integer <int64>
Default: 1

The page number.

filter
string
Example: filter=?filter=field1 -eq "abc"

For more information on the available operators and which data types those operators work on, see Filter API call results.

sort
string
Example: sort=?sort=field1:asc

For more information on sorting capability and examples, see Sort API call results.

Responses

Response samples

Content type
application/json
{
  • "pagination": {
    },
  • "items": [
    ]
}

Get user subscriptions

Returns a collection of subscriptions in use by the given user.

Authorizations:
bearerAuthbearerAuth
path Parameters
userId
required
string
Example: a7a75b83-2690-4cc9-b652-a0fbe93dba4a

The unique ID of the user.

query Parameters
page_size
integer <= 1000
Default: 100

The maximum number of items in the response.

page_number
integer <int64>
Default: 1

The page number.

filter
string
Example: filter=?filter=field1 -eq "abc"

For more information on the available operators and which data types those operators work on, see Filter API call results.

sort
string
Example: sort=?sort=field1:asc

For more information on sorting capability and examples, see Sort API call results.

Responses

Response samples

Content type
application/json
{
  • "pagination": {
    },
  • "items": [
    ]
}

Get user discovery sources

Returns a collection of discovery sources for the given user.

Authorizations:
bearerAuthbearerAuth
path Parameters
userId
required
string
Example: a7a75b83-2690-4cc9-b652-a0fbe93dba4a

The unique ID of the user.

query Parameters
page_size
integer <= 1000
Default: 100

The maximum number of items in the response.

page_number
integer <int64>
Default: 1

The page number.

filter
string
Example: filter=?filter=field1 -eq "abc"

For more information on the available operators and which data types those operators work on, see Filter API call results.

sort
string
Example: sort=?sort=field1:asc

For more information on sorting capability and examples, see Sort API call results.

Responses

Response samples

Content type
application/json
{
  • "pagination": {
    },
  • "items": [
    ]
}