Download OpenAPI specification:Download
API endpoints for managing users
Get the users in a group. Some filters are available in the query string, and these will return any results with a partial substring match. Filters apply in an 'AND' fashion.
groupId required | integer The group ID (Must be a positive unsigned integer) |
limit | integer [ 1 .. 1000 ] Default: 20 The number of results to return per page for pagination. The value must be an integer between 1 and 1000 |
offset | integer >= 0 Default: 0 The number of records to skip before starting to return results for pagination. The value must be an integer greater than or equal to 0 |
username | string You may identify your subscribers by giving part of their Glance Addresses. If your subscribers have Glance Addresses like p123.example.glance.net, p124.example.glance.net, and p125.example.glance.net, you may identify them all by specifying .example.glance.net.To identify just one subscriber give the entire Glance Address. To get all subscribers omit this parameter or set to the empty string. |
firstName | string Supply a first name to filter results |
lastName | string Supply a last name to filter results |
puid | string Supply a Partner User ID to filter results. A PUID is a unique identifier for a user within a group. |
roleName | string Supply a role name to filter out users not associated with a role with a substring match for the supplied name |
roleID | string Supply a role ID to filter out users who do not have the specified roleID. |
orMode | boolean When pass in true to the orMode parameter, the filter parameters passed in will act in an "or"-like fashion, and will return any users that match any of the filters. |
{- "pagination": {
- "offset": 0,
- "pageSize": 0,
- "totalRecords": 0
}, - "usersList": [
- {
- "userId": 0,
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string",
- "username": "string",
- "partnerUserId": "string",
- "suspended": true,
- "subscription": true,
- "roleId": 0,
- "lastWebLogin": "2019-08-24T14:15:22Z",
- "roleName": "string"
}
]
}
Create new users within a group
groupId required | integer The group ID (Must be a positive unsigned integer) |
firstName | string The user's first name |
lastName | string The user's last name |
string The user's email | |
phone | string The user's phone number |
username required | string The user's username, formerly "Glance Address" |
password | string The user's password |
partnerUserId required | string The user's partnerUserId, a unique identifier within this group |
roleId | integer The user's associated role ID in this group |
[- {
- "firstName": "John",
- "lastName": "Doe",
- "email": "johndoe@example.com",
- "phone": "123-456-7890",
- "username": "johndoe.glance.net",
- "password": "securepassword",
- "partnerUserId": "123456",
- "roleId": 1
}, - {
- "firstName": "Jane",
- "lastName": "Smith",
- "email": "janesmith@example.com",
- "phone": "987-654-3210",
- "username": "janesmith.glance.net",
- "password": "anothersecurepassword",
- "partnerUserId": "789012",
- "roleId": 2
}
]
[- {
- "userId": 0,
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string",
- "username": "string",
- "partnerUserId": "string",
- "suspended": true,
- "roleId": 0
}
]
Update existing users within a group
groupId required | integer The group ID (Must be a positive unsigned integer) |
userId required | integer The user's unique ID |
partnerUserId | string The user's partnerUserId, a unique identifier within this group (Empty string is not allowed) |
suspended | boolean Set to true to suspend an active user, and set to false to reinstate a suspended user. |
username | string The user's username, formerly "Glance Address" |
password | string The user's password |
firstName | string The user's first name |
lastName | string The user's last name |
string The user's email | |
phone | string The user's phone number |
roleId | integer The user's role ID |
[- {
- "userId": 101,
- "partnerUserId": "123456",
- "suspended": false,
- "username": "johndoe.glance.net",
- "password": "newpassword123",
- "firstName": "John",
- "lastName": "Doe",
- "email": "johndoe@example.com",
- "phone": "123-456-7890",
- "roleId": 2
}, - {
- "userId": 102,
- "partnerUserId": "789012",
- "suspended": true,
- "username": "janesmith.glance.net",
- "password": "securepass",
- "firstName": "Jane",
- "lastName": "Smith",
- "email": "janesmith@example.com",
- "phone": "987-654-3210",
- "roleId": 3
}
]
2
Delete existing users within a group
groupId required | integer The group ID (Must be a positive unsigned integer) |
Array of User IDs
[- 100,
- 200,
- 300
]
3