User accounts
SAM: User accounts (1.0.0)
Download OpenAPI specification:Download
API for interacting with User Accounts.
Get user
Returns the details of a user.
Authorizations:
path Parameters
id required | string The unique ID of the user for which details will be returned. |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "id": "d983ee47-92c9-47ad-9975-ec85d2a479a1",
- "userName": "ssmith",
- "status": "Active",
- "email": "ssmith@thebagel.co",
- "organizationId": "8b4f2d90-99e7-408a-bad6-68d491e94dba",
- "fullName": "Sammy Smith",
- "phoneNumber": "789-654-1236",
- "location": "Austin",
- "roomNumber": "5716",
- "quarantineDate": "2019-08-24T14:15:22Z",
- "lastLogon": "2019-08-24T14:15:22Z",
- "lastUpdate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "updatedBy": "Data Update Job",
- "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}
Get users
Returns a collection of users.
Authorizations:
query Parameters
page_size | integer Default: 100 The maximum number of items in the response. | ||||||||||||||||
page_number | integer Default: 1 The page number. | ||||||||||||||||
filter | string Example: filter=status -eq "active" Filter the collection of Users. Format of the query string parameter:
For more information on the available operators and which data types those operators work on, see Filter API call results. |
Responses
Response samples
- 200
- 400
- 500
{- "pagination": {
- "page_size": 100,
- "page_number": 1,
- "total_pages": 1
}, - "items": [
- {
- "id": "8b4f2d90-99e7-408a-bad6-68d491e94dba",
- "userName": "ssmith",
- "status": "Active",
- "email": "ssmith@thebagel.co",
- "fullName": "Sammy Smith",
- "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}
], - "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}
Get user discovery data
Returns discovery data for a given user.
Authorizations:
path Parameters
id required | string The unique ID of the user account for which details will be returned. |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "objectId": "",
- "domainName": "thebagel",
- "samAccountName": "thebagel\\ssmith",
- "firstName": "Sammy",
- "lastName": "Smith",
- "email": "ssmith@thebegel.co",
- "homePhoneNumber": "789-654-1236",
- "mobilePhoneNumber": "",
- "lastLogonActivity": "2019-08-24T14:15:22Z",
- "whenCreated": "2019-08-24T14:15:22Z",
- "whenChanged": "2019-08-24T14:15:22Z",
- "isEnabled": true,
- "userAccountControl": 0,
- "managerName": "Billy Hare",
- "managerEmail": "bhare@thebagel.co",
- "organizationalUnit": "Laurel_MI",
- "userPrincipalName": "ssmith@thebegel.co",
- "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}
Get users discovery data
Returns a collection of discovery data for users.
Authorizations:
query Parameters
page_size | integer Default: 100 The maximum number of items in the response. | ||||||||||||||||
page_number | integer Default: 1 The page number. | ||||||||||||||||
filter | string Example: filter=domainName -eq "thebagel.co" Filter the collection of user discovery details. Format of the query string parameter:
For more information on the available operators and which data types those operators work on, see Filter API call results. |
Responses
Response samples
- 200
- 400
- 500
{- "items": [
- {
- "objectId": "string",
- "domainName": "thebagel.co",
- "samAccountName": "thebagel\\ssmith",
- "email": "ssmith@thebagel.co",
- "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}
], - "pagination": {
- "page_size": 100,
- "page_number": 1,
- "total_pages": 1
}, - "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}
Get users metering data
Returns a collection of metering data for users.
Authorizations:
query Parameters
page_size | integer Default: 100 The maximum number of items in the response. | ||||||||||||||||
page_number | integer Default: 1 The page number. | ||||||||||||||||
filter | string Example: filter=applicationID -eq "85d5dc09-115c-40db-a2f6-09f9c935852e" Filter the collection account metering. Format of the query string parameter:
For more information on the available operators and which data types those operators work on, see Filter API call results. |
Responses
Response samples
- 200
- 400
- 500
{- "items": [
- {
- "id": "string",
- "metricID": "2823fbea-bd7b-4f4f-9f0c-780a5f26218c",
- "applicationId": "85d5dc09-115c-40db-a2f6-09f9c935852e",
- "organizationId": "317db6a5-e16d-4e3b-a745-1f973690e982",
- "initialRequirement": 0,
- "includedInBundle": 0,
- "outsideMetricPeriod": 0,
- "secondaryUseRightsDesktopLaptop": 0,
- "secondaryUseRightsDevice": 0,
- "extendedCoverageForDcc": 0,
- "extendedCoverageForHost": 0,
- "multipleVersionEdition": 0,
- "virtualDesktopInfrastructure": 0,
- "minimumRequirement": 0,
- "coreFactor": 0,
- "requirement": 0,
- "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}
], - "pagination": {
- "page_size": 100,
- "page_number": 1,
- "total_pages": 1
}, - "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}
Get user metering data
Returns metering data for a given user.
Authorizations:
path Parameters
id required | string The unique ID of the user for which details will be returned. |
query Parameters
page_size | integer Default: 100 The maximum number of items in the response. | ||||||||||||||||
page_number | integer Default: 1 The page number. | ||||||||||||||||
filter | string Example: filter=applicationID -eq "85d5dc09-115c-40db-a2f6-09f9c935852e" Filter the collection account metering. Format of the query string parameter:
For more information on the available operators and which data types those operators work on, see Filter API call results. |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "items": [
- {
- "id": "string",
- "metricID": "2823fbea-bd7b-4f4f-9f0c-780a5f26218c",
- "applicationId": "85d5dc09-115c-40db-a2f6-09f9c935852e",
- "organizationId": "317db6a5-e16d-4e3b-a745-1f973690e982",
- "initialRequirement": 0,
- "includedInBundle": 0,
- "outsideMetricPeriod": 0,
- "secondaryUseRightsDesktopLaptop": 0,
- "secondaryUseRightsDevice": 0,
- "extendedCoverageForDcc": 0,
- "extendedCoverageForHost": 0,
- "multipleVersionEdition": 0,
- "virtualDesktopInfrastructure": 0,
- "minimumRequirement": 0,
- "coreFactor": 0,
- "requirement": 0,
- "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}
], - "pagination": {
- "page_size": 100,
- "page_number": 1,
- "total_pages": 1
}, - "_links": [
- {
- "href": "api/sam/estate/v1/...",
- "rel": "self",
- "method": "GET"
}
]
}