Users
Get users
Returns a collection of users.
Authorizations:
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
- 200
- 400
- 500
{- "pagination": {
- "page_size": 100,
- "page_number": 1,
- "total_pages": 1,
- "total_items": 1
}, - "items": [
- {
- "country": "Japan",
- "createdDate": "2024-05-25T00:00:00Z",
- "department": "Engineering",
- "discoveryTypes": {
- "0": 1,
- "1": 2
}, - "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 KPIs
Returns a collection of users' key performance indicators.
Authorizations:
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
- 200
- 500
{- "active": 10,
- "activeChartData": [
- {
- "active": 10,
- "date": "2024-05-25T00:00:00Z",
- "total": 10
}
], - "activeTrend": 10,
- "currentActiveChartData": [
- {
- "active": 10,
- "date": "2024-05-25T00:00:00Z",
- "total": 10
}
], - "currentInactiveChartData": [
- {
- "date": "2024-05-25T00:00:00Z",
- "inactive": 5,
- "total": 10
}
], - "currentNoActivityChartData": [
- {
- "date": "2024-05-25T00:00:00Z",
- "noActivity": 5,
- "total": 10
}
], - "currentTotalChartData": [
- {
- "added": 20,
- "date": "2024-04-30T01:00:00Z",
- "removed": 10,
- "total": 100
}
], - "inactive": 10,
- "inactiveChartData": [
- {
- "date": "2024-05-25T00:00:00Z",
- "inactive": 5,
- "total": 10
}
], - "inactiveTrend": 10,
- "noActivity": 10,
- "noActivityChartData": [
- {
- "date": "2024-05-25T00:00:00Z",
- "noActivity": 5,
- "total": 10
}
], - "noActivityTrend": 10,
- "total": 10,
- "totalChartData": [
- {
- "added": 20,
- "date": "2024-04-30T01:00:00Z",
- "removed": 10,
- "total": 100
}
], - "totalTrend": 10
}
Get user
Returns the details of a user.
Authorizations:
path Parameters
userId required | string Example: a7a75b83-2690-4cc9-b652-a0fbe93dba4a The unique ID of the user. |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "country": "Japan",
- "createdDate": "2024-05-25T00:00:00Z",
- "department": "Engineering",
- "discoveryTypes": {
- "0": 1,
- "1": 2
}, - "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:
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
|
isInReview required | boolean
|
isQualified required | boolean
|
Responses
Request samples
- Payload
{- "isOnline": true,
- "isInReview": true,
- "isQualified": true
}
Response samples
- 200
- 400
- 404
- 500
{- "country": "Japan",
- "createdDate": "2024-05-25T00:00:00Z",
- "department": "Engineering",
- "discoveryTypes": {
- "0": 1,
- "1": 2
}, - "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:
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
- 200
- 400
- 404
- 500
{- "pagination": {
- "page_size": 100,
- "page_number": 1,
- "total_pages": 1,
- "total_items": 1
}, - "items": [
- {
- "discoveryTypes": [
- 0
], - "id": "77f176da-7640-4889-ba6b-c53fe882b234",
- "lastActive": "2024-06-28T00:00:00Z",
- "name": "Microsoft PowerApps",
- "vendor": "Microsoft Corporation",
- "vendorId": "8cab5d46-18fd-462f-9ae8-6cac8ba12054"
}
]
}
Get user subscriptions
Returns a collection of subscriptions in use by the given user.
Authorizations:
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
- 200
- 400
- 404
- 500
{- "pagination": {
- "page_size": 100,
- "page_number": 1,
- "total_pages": 1,
- "total_items": 1
}, - "items": [
- {
- "applicationId": "def96bf0-bfd1-4bf9-8b1c-aa78a32bc0ed",
- "applicationName": "Microsoft Copilot",
- "discoverySource": "O365 Connector",
- "discoveryType": 0,
- "firstDiscovered": "2024-07-17T08:21:17.359Z",
- "id": "ac2c7870-6457-4a99-bafb-467eaf5de8e4",
- "lastActivity": "2024-06-28T00:00:00Z",
- "name": "Copilot",
- "potentialSavings": 100,
- "totalCostPerMonth": 100,
- "vendor": "Microsoft Corporation",
- "vendorId": "8cab5d46-18fd-462f-9ae8-6cac8ba12054"
}
]
}
Get user discovery sources
Returns a collection of discovery sources for the given user.
Authorizations:
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
- 200
- 400
- 404
- 500
{- "pagination": {
- "page_size": 100,
- "page_number": 1,
- "total_pages": 1,
- "total_items": 1
}, - "items": [
- {
- "created": "2024-05-25T00:00:00Z",
- "id": "299febb3-4107-42e9-8121-3df991acaf49",
- "name": "saas.collectors.m365",
- "type": 1
}
]
}