
USERS
The "users" correspond to any account created in your Lära LMS environment, and are named in the API "user". | ![]() |
User/get
![]() | Returns all the information relating to a specific user. |
Request
Example of request call content for information on a user:
{
"id": "WhcMwDXxCq%2fsp4YP%2btHUjg%3d%3d"
}Field descriptions
| Name | Required | Comment/description |
| id | X | Unique identifier of the user. (String type) |
Response
Example of response call content for information on a user:
{
"id": "WhcMwDXxCq%2fsp4YP%2btHUjg%3d%3d",
"websiteId": "ZRtLSlsH5%2bKhhAxU0I4Lgg%3d%3d",
"login": "Jhemington",
"firstName": "Jessica",
"lastName": "Hemington",
"language": 1,
"email": "jhemington@sviesolutions.com",
"companyName": "SVIeSolutions",
"functionTitle": "Agentes des ressources humaines",
"hourlyWage": 0.00,
"phoneHome": "418 948-4848",
"phoneMobile": "418 948-4848",
"phoneWork": "418 948-4848",
"phonePublic": 0,
"timeZone": 10,
"billToName": "Jessica Hemington",
"address": "234, du Faubourg",
"address2": "bur. 404",
"postalCode": "1H1 H1H",
"city": "Québec",
"countryId": 37,
"stateId": 11,
"portalId": "pVwwetET1HGiEZIfRQOoxo%3d%3d",
"inscriptionDate": "2021-10-08T09:21:37.657",
"expirationDate": "0001-01-01T00:00:00",
"enableNotifications": true,
"viaAccessMode": 0,
"status": 0,
"customFields": {
"ismember": true,
"job_title": "RH",
"Num_membre": "17MQ198"
},
"approverUserId": "y9DDvS6G4UzxlxV%2fPuEWqA%3d%3d"
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. This parameter must be empty when the create method is used, but is required for edit mode. |
| websiteId | This is the unique identifier of the user in the Lära LMS interface. |
login | Login of the user. (String type, >=4 and <= 250 characters. It must be a unique identifier on the server) |
firstName | First name of the user. (String type, <=50 characters) |
lastName | Last name of the user. (String type, <=50 characters) |
language | The default display language can be set according to the following list of constants:
If this value is empty, the API uses the default language defined for the organization in which the user is created. (Number type) |
A format validation is performed by the web service in accordance with the RFC2822 standard (<=100 characters and the email address must be valid) | |
companyName | Company name of the user. (String type, <=100 characters) |
functionTitle | Position of the user in the organization. (String type, <= 100 characters) |
| hourlyWage | Hourly rate of the user. (Decimal type, <= 999, max 2 decimals) |
phoneHome | Telephone number of the user. (String type, <=40 characters) |
phoneMobile | Mobile telephone number of the user. (String type, <=40 characters) |
phoneWork | Work telephone number of the user. (String type, <=40 characters) |
phonePublic | The phonePublic field indicates which telephone number will be shared with the other Via users, according to the following list of constants:
When this parameter is empty, the value 0 is applied. (Number type) |
timeZone | Via users are invited to shared meetings without necessarily being in the same location. Via therefore allows each person to manage their own time zone in order to view the meetings in their local time. The complete list of constants (0 to 77) is available in the appendix of the document. |
| billToName | Bill to name for the user (String type, <= 250 characters) |
address | Address of the user. (String type, <=100 characters) |
address2 | Additional information about the address (apartment, mailbox, floor). (String type, <=100 characters) |
postalCode | Postal code of the user. (String type, <=50 characters) |
city | City of the user. (String type, <=100 characters) |
countryId | Country of the user – Number type (See Appendix 3: Countries and States/Provinces). |
stateId | Number indicating the state of the user - Number type (See Appendix 3: Countries and States/Provinces). |
portalId | Identifier of the default portal of the user (String type) |
| inscriptionDate | The creation date of the user account. |
| expirationDate | The expiry date of the user account. |
enableNotifications | Indicates whether the user can receive by email the notifications related to the operation of the site and the promotional campaigns. Set to "true" by default |
| viaAccessMode | Indicates the access mode to Via Classic, if your organization still uses that software.
|
| status | (Read only) Indicates the activation status of the user account.
(Number type) |
customFields | Custom fields linked to the user. |
| approverUserId | Identifier of the approver of the user (String type) |
User/getlist
![]() | Returns a list of non-deactivated users existing in your environment. |
Request
Example of request call content for a list of users:
{
"filterDate": "YYYY-MM-DDTHH:MM:SSZ",
"filterEditDate": "YYYY-MM-DDTHH:MM:SSZ",
"filterIndex" : 2
}Field descriptions
| Name | Required | Comment/description |
filterDate | Creation date of the user account in the environment. The call will return the accounts created after that moment. Can be used with filterEditDate or on its own. (String type, YYYY-MM-DDTHH:MM:SSZ) | |
| filterEditDate | Date of the last modification of the user account in the environment. The call will return the accounts modified after that moment. Can be used with filterDate or on its own. The modification date is also updated upon creation. (String type, YYYY-MM-DDTHH:MM:SSZ) | |
| filterIndex | By default the call returns users 1 to 200 (filterIndex = 1), and an index filter of 2 returns users 201 to 400. |
Response
Example of response call content for a list of users:
[
{
"id": "WhcMwDXxCq%2fsp4YP%2btHUjg%3d%3d",
"websiteId": "ZRtLSlsH5%2bKhhAxU0I4Lgg%3d%3d",
"login": "Jhemington",
"firstName": "Jessica",
"lastName": "Hemington",
"language": 1,
"email": "jhemington@sviesolutions.com",
"companyName": "SVIeSolutions",
"functionTitle": "Agentes des ressources humaines",
"phoneHome": "418 948-4848",
"phoneMobile": "418 948-4848",
"phoneWork": "418 948-4848",
"phonePublic": 0,
"timeZone": 10,
"billToName": "Jessica Hemington",
"address": "234, du Faubourg",
"address2": "bur. 404",
"postalCode": "1H1 H1H",
"city": "Québec",
"countryId": 37,
"stateId": 11,
"portalId": "pVwwetET1HGiEZIfRQOoxo%3d%3d",
"inscriptionDate": "2021-10-08T09:21:37.657",
"expirationDate": "0001-01-01T00:00:00",
"enableNotifications": true,
"viaAccessMode": 0,
"status": 0,
"customFields": {
"ismember": true,
"job_title": "RH",
"Num_membre": "17MQ198"
}
},
{
"id": "PocQsTYxCq%2frp6YE%2bkHIjg%3d%3d",
"websiteId": "ZFqLDlsH5%2bKhhAxU0I4Lgg%3d%3d",
"login": "Rhemington",
"firstName": "Rebbeca",
"lastName": "Hemington",
"language": 1,
"email": "rhemington@sviesolutions.com",
"companyName": "SVIeSolutions",
"functionTitle": "Agentes des ressources humaines",
"phoneHome": "418 948-4848",
"phoneMobile": "418 948-4848",
"phoneWork": "418 948-4848",
"phonePublic": 0,
"timeZone": 10,
"billToName": "Rebbeca Hemington",
"address": "234, du Faubourg",
"address2": "bur. 404",
"postalCode": "1H1 H1H",
"city": "Québec",
"countryId": 37,
"stateId": 11,
"portalId": "pVwwetET1HGiEZIfRQOoxo%3d%3d",
"inscriptionDate": "2021-10-08T09:21:37.657",
"expirationDate": "0001-01-01T00:00:00",
"enableNotifications": true,
"viaAccessMode": 0,
"status": 0,
"customFields": {
"ismember": true,
"job_title": "RH",
"Num_membre": "17MQ198"
},
"approverUserId": "y9DDvS6G4UzxlxV%2fPuEWqA%3d%3d"
}
]Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. This parameter must be empty when the create method is used, but is required for edit mode. |
| websiteId | This is the unique identifier of the user in the Lära LMS interface. |
login | Login of the user. (String type, >=4 and <= 250 characters. It must be a unique identifier on the server) |
firstName | First name of the user. (String type, <=50 characters) |
lastName | Last name of the user. (String type, <=50 characters) |
language | The default display language can be set according to the following list of constants:
If this value is empty, the API uses the default language defined for the organization in which the user is created. (Number type) |
A format validation is performed by the web service in accordance with the RFC2822 standard (<=100 characters and the email address must be valid) | |
companyName | Company name of the user. (String type, <=100 characters) |
functionTitle | Position of the user in the organization. (String type, <= 100 characters) |
phoneHome | Telephone number of the user. (String type, <=40 characters) |
phoneMobile | Mobile telephone number of the user. (String type, <=40 characters) |
phoneWork | Work telephone number of the user. (String type, <=40 characters) |
phonePublic | The phonePublic field indicates which telephone number will be shared with the other Via users, according to the following list of constants:
When this parameter is empty, the value 0 is applied. (Number type) |
timeZone | Via users are invited to shared meetings without necessarily being in the same location. Via therefore allows each person to manage their own time zone in order to view the meetings in their local time. The complete list of constants (0 to 77) is available in the appendix of the document. |
| billToName | Bill to name for the user (String type, <= 250 characters) |
address | Address of the user. (String type, <=100 characters) |
address2 | Additional information about the address (apartment, mailbox, floor). (String type, <=100 characters) |
postalCode | Postal code of the user. (String type, <=50 characters) |
city | City of the user. (String type, <=100 characters) |
countryId | Country of the user – Number type (See Appendix 3: Countries and States/Provinces). |
stateId | Number indicating the state of the user - Number type (See Appendix 3: Countries and States/Provinces). |
portalId | Identifier of the default portal of the user (String type) |
| inscriptionDate | The creation date of the user account. (String type, YYYY-MM-DDTHH:MM:SSZ) |
| expirationDate | The expiry date of the user account. (String type, YYYY-MM-DDTHH:MM:SSZ) |
enableNotifications | Indicates whether the user can receive by email the notifications related to the operation of the site and the promotional campaigns. Set to "true" by default (Boolean type) |
| viaAccessMode | Indicates the access mode to Via Classic, if your organization still uses that software.
|
| status | (Read only) Indicates the activation status of the user account.
(Number type) |
customFields | Custom fields linked to the user. |
| approverUserId | Identifier of the approver of the user (String type) |
User/create
![]() | Creates a new user in your environment. |
Request
Example of request call content to create a user:
{
"branchId":"EZIGUBLNy2lT%2bGEqj%2bRPHw%3d%3d",
"PermissionId" : "keRAK5MldUQPi4btSHrvNA%3d%3d",
"Password":"Jasmin1234",
"login": "JasminDuberger1234",
"firstName": "Jasmin",
"lastName": "Duberger",
"language": 1,
"email": "jduberger@gmail.com",
"companyName": "Duberger et Fils",
"functionTitle": "Président",
"hourlyWage": 0.00,
"phoneHome": "1 418 644-4444",
"phoneMobile": "1 418 808-0808",
"phoneWork": "1 800 733-1333",
"phonePublic": 0,
"timeZone": 10,
"billToName": "Jasmin Duberger",
"address": "13, rue Duberger",
"address2": "Duberger-Les-Saules",
"postalCode": "H0H 0H0",
"city": "Québec",
"countryId": 37,
"stateId": 11,
"portalId": "pMwiytSS1YRiELXfRQOwxw%3d%3d",
"expirationDate": "2025-12-31T00:00:00",
"enableNotifications": true,
"viaAccessMode": 0,
"status": 0,
"pictureURL":"https://laralms.sviesolutions.com/Covers/3717/cover_400.jpg",
"sendMailNotification":true,
"forcePasswordChange":true,
"customFields": {
"ismember": true,
"job_title": "Plombier",
"Num_membre": "DUBER109"
},
"approverUserId": "y9DDvS6G4UzxlxV%2fPuEWqA%3d%3d"
}Field descriptions
Name | Required | Comments/description |
| branchId | Identifier of the assigned branch in which to place the user. If empty, the user will be placed in the root branch. To change the branch of a user, use the "User/addtobranch" and "User/removefrombranch" calls (String type) | |
| permissionId | Identifier of the rights profile to assign to the user. If empty, the rights profile assigned by default will be "User". The rights profiles on branches must be modified through the calls of type /branch (String type) | |
| password | Password of the user. If no password is provided, a random password will be generated. (String type, < = 250 characters) | |
login |
| Login of the user. (String type, >=4 and <= 250 characters. It must be a unique identifier on the server) |
firstName | X | First name of the user. (String type, <=50 characters) |
lastName | X | Last name of the user. (String type, <=50 characters) |
language | X | The default display language can be set according to the following list of constants:
If this value is empty, the API uses the default language defined for the organization in which the user is created. (Number type) |
X | A format validation is performed by the web service in accordance with the RFC2822 standard (<=100 characters and the email address must be valid) | |
companyName |
| Company name of the user. (String type, <=100 characters) |
functionTitle |
| Position of the user in the organization. (String type, <= 100 characters) |
| hourlyWage | Hourly rate of the user. (Decimal type, <= 999, max 2 decimals) | |
phoneHome |
| Telephone number of the user. (String type, <=40 characters) |
phoneMobile |
| Mobile telephone number of the user. (String type, <=40 characters) |
phoneWork |
| Work telephone number of the user. (String type, <=40 characters) |
phonePublic |
| The phonePublic field indicates which telephone number will be shared with the other Via users, according to the following list of constants:
When this parameter is empty, the value 0 is applied. (Number type) |
timeZone |
| Via users are invited to shared meetings without necessarily being in the same location. Via therefore allows each person to manage their own time zone in order to view the meetings in their local time. The complete list of constants (0 to 77) is available in the appendix of the document. |
| billToName | Bill to name for the user (String type, <= 250 characters) | |
address |
| Address of the user. (String type, <=100 characters) |
address2 |
| Additional information about the address (apartment, mailbox, floor). (String type, <=100 characters) |
postalCode |
| Postal code of the user. (String type, <=50 characters) |
city |
| City of the user. (String type, <=100 characters) |
countryId |
| Country of the user. (Number type, see Appendix 3: Countries and States/Provinces) |
stateId |
| Number indicating the state of the user. (Number type, see Appendix 3: Countries and States/Provinces) |
portalId |
| Identifier of the default portal of the user. (String type) |
| expirationDate | The expiry date of the user account. (String type, YYYY-MM-DDTHH:MM:SSZ) | |
enableNotifications | Indicates whether the user can receive by email the notifications related to the operation of the site and the promotional campaigns. Set to "true" by default (Boolean type) | |
| viaAccessMode | Indicates the access mode to Via Classic, if your organization still uses that software.
| |
| status | (Read only) Indicates the activation status of the user account.
(Number type) | |
| pictureURL | URL address where the profile picture of the user is hosted. (String type) | |
| sendMailNotification | Indicates whether an account creation confirmation email will be sent to the user. | |
| forcePasswordChange | Indicates whether the user will have to change their password at their first login. (Boolean type) | |
customFields |
| Custom fields linked to the user. |
| approverUserId | Identifier of a user who has approver rights (String type) |
Response
Example of response call content when creating a user. The system returns the unique identifier of the created user:
{
"id": "R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. This parameter must be empty when the create method is used, but is required for edit mode. |
User/edit
![]() | Modifies a user in your environment. |
Request
Example of request call content to modify a user. The fields that are provided are updated; those that are absent or identical are ignored:
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d",
"PermissionId" : "keRAK5MldUQPi4btSHrvNA%3d%3d",
"Password":"Jasmin1234",
"login": "JasminDuberger1234",
"firstName": "Jasmin",
"lastName": "Duberger",
"language": 1,
"email": "jduberger@gmail.com",
"companyName": "Duberger et Fils",
"functionTitle": "Président",
"hourlyWage": 0.00,
"phoneHome": "1 418 644-4444",
"phoneMobile": "1 418 808-0808",
"phoneWork": "1 800 733-1333",
"phonePublic": 0,
"timeZone": 10,
"billToName": "Jasmin Duberger",
"address": "13, rue Duberger",
"address2": "Duberger-Les-Saules",
"postalCode": "H0H 0H0",
"city": "Québec",
"countryId": 37,
"stateId": 11,
"portalId": "pMwiytSS1YRiELXfRQOwxw%3d%3d",
"expirationDate": "2025-12-31T00:00:00",
"enableNotifications": true,
"viaAccessMode": 0,
"status": 0,
"pictureURL":"https://laralms.sviesolutions.com/3848/cover_400.jpg",
"expirationDate": "2025-01-01T00:00:00",
"customFields": {
"ismember": true,
"job_title": "Plombier",
"Num_membre": "DUBER109"
},
"approverUserId": "y9DDvS6G4UzxlxV%2fPuEWqA%3d%3d"
}Field descriptions
Name | Required | Comments/description |
| id | X | This is the unique identifier of the user in the API. This parameter must be empty when the create method is used, but is required for edit mode. |
| password | Password of the user. (String type, < = 250 characters) | |
login |
| Login of the user. (String type, >=4 and <= 250 characters. It must be a unique identifier on the server) |
firstName | First name of the user. (String type, <=50 characters) | |
lastName | Last name of the user. (String type, <=50 characters) | |
language | The default display language can be set according to the following list of constants:
If this value is empty, the API uses the default language defined for the organization in which the user is created. (Number type) | |
A format validation is performed by the web service in accordance with the RFC2822 standard (<=100 characters and the email address must be valid) | ||
companyName |
| Company name of the user. (String type, <=100 characters) |
functionTitle |
| Position of the user in the organization. (String type, <= 100 characters) |
| hourlyWage | Hourly rate of the user. (Decimal type, <= 999, max 2 decimals) | |
phoneHome |
| Telephone number of the user. (String type, <=40 characters) |
phoneMobile |
| Mobile telephone number of the user. (String type, <=40 characters) |
phoneWork |
| Work telephone number of the user. (String type, <=40 characters) |
phonePublic |
| The phonePublic field indicates which telephone number will be shared with the other Via users, according to the following list of constants:
When this parameter is empty, the value 0 is applied. (Number type) |
timeZone |
| Via users are invited to shared meetings without necessarily being in the same location. Via therefore allows each person to manage their own time zone in order to view the meetings in their local time. The complete list of constants (0 to 77) is available in the appendix of the document. |
| billToName | Bill to name for the user (String type, <= 250 characters) | |
address |
| Address of the user. (String type, <=100 characters) |
address2 |
| Additional information about the address (apartment, mailbox, floor). (String type, <=100 characters) |
postalCode |
| Postal code of the user. (String type, <=50 characters) |
city |
| City of the user. (String type, <=100 characters) |
countryId |
| Country of the user. (Number type, see Appendix 3: Countries and States/Provinces) |
stateId |
| Number indicating the state of the user. (Number type, see Appendix 3: Countries and States/Provinces) |
portalId |
| Identifier of the default portal of the user. (String type) |
| viaAccessMode | Indicates the access mode to Via Classic, if your organization still uses that software.
| |
| pictureURL | URL address where the profile picture of the user is hosted. (String type) | |
| enableNotifications | Indicates whether the user will receive by email the notifications related to the site and the promotional campaigns. | |
| expirationDate | The expiry date of the user account. (String type, YYYY-MM-DDTHH:MM:SSZ) | |
| status | (Read only) Indicates the activation status of the user account.
(Number type) | |
customFields |
| Custom fields linked to the user. |
| approverUserId | Identifier of a user who has approver rights (String type) |
Response
Example of response call content when modifying a user. The system returns the unique identifier of the modified user:
{
"id": "R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. This parameter must be empty when the create method is used, but is required for edit mode. |
User/delete
![]() | Deletes a user from your environment. |
Request
Example of request call content to delete a user.
IMPORTANT: this action is irreversible!
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
Name | Required | Comments/description |
| id | X | This is the unique identifier of the user in the API. (String type) |
Response
Example of response call content when deleting a user. The system returns the unique identifier of the deleted user:
{
"id": "R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. |
User/deactivate
![]() | Deactivates a user in your environment. The account and the data are kept, but the user will no longer have access to the environment. |
Request
Example of request call content to deactivate a user:
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d",
"expirationDate" : "2029-12-31T00:00:00.000"
}Field descriptions
Name | Required | Comments/description |
| id | X | This is the unique identifier of the user in the API. (String type) |
| expirationDate | This is the date on which the user will be deactivated. (String type, YYYY-MM-DDTHH:MM:SSZ) |
Response
Example of response call content when deactivating a user. The system returns the unique identifier of the deactivated user:
{
"id": "R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. |
User/activate
![]() | Reactivates a user in your environment. The user will have access to the environment again. |
Request
Example of request call content to reactivate a user:
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
Name | Required | Comments/description |
| id | X | This is the unique identifier of the user in the API. (String type) |
Response
Example of response call content when reactivating a user. The system returns the unique identifier of the reactivated user:
{
"id": "R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. |
User/getbranchlist
![]() | Retrieves the list of branches of a user in your environment, as well as their rights profile on each of those branches. |
Request
Example of request call content for the branches and rights profiles of a user:
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
Name | Required | Comments/description |
| id | X | This is the unique identifier of the user in the API. (String type) |
Response
Example of response call content for the branches and rights profiles of a user. The system returns the list of branches and the rights profiles respectively associated with them:
[
{
"id": "R2gbgKeLz4xUqsTSfcwsNQ%3d%3d",
"branchId": "HAwToYn4CzS208NIAwBVEQ%3d%3d",
"permissionId": "pJlqyk0x52S%2f5ZZGxAITFw%3d%3d"
},
{
"id": "R2gbgKeLz4xUqsTSfcwsNQ%3d%3d",
"branchId": "61%2bwMxJmDOvWFQrEjS4p4g%3d%3d",
"permissionId": "pJlqyk0x52S%2f5ZZGxAITFw%3d%3d"
},
{
"id": "R2gbgKeLz4xUqsTSfcwsNQ%3d%3d",
"branchId": "EZIGUBLNy2lT%2bGEqj%2bRPHw%3d%3d",
"permissionId": "keRAK5MldUQPi4btSHrvNA%3d%3d"
}
]
Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. |
| branchId | This is the unique identifier of the branch in the API. |
| permissionId | This is the unique identifier of the rights profile in the API. |
User/addtobranch
![]() | Adds a user in your environment to a branch. |
Request
Example of request call content to associate a user with a branch:
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d",
"branchId": "PDL4GdCE%2fxiBbqyuKV9E3g%3d%3d"
}Field descriptions
Name | Required | Comments/description |
| id | X | This is the unique identifier of the user in the API. (String type) |
| branchId | X | This is the unique identifier of the branch in the API. (String type) |
Response
Example of response call content when associating a user with a branch. The system returns the identifier of the user and the identifier of the branch:
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d",
"branchId": "PDL4GdCE%2fxiBbqyuKV9E3g%3d%3d"
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. |
| branchId | This is the unique identifier of the branch in the API. |
User/removefrombranch
![]() | Removes a user from a branch. |
Request
Example of request call content to disassociate a user from a branch:
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d",
"branchId": "PDL4GdCE%2fxiBbqyuKV9E3g%3d%3d"
}Field descriptions
Name | Required | Comments/description |
| id | X | This is the unique identifier of the user in the API. (String type) |
| branchId | X | This is the unique identifier of the branch in the API. (String type) |
Response
Example of response call content when disassociating a user from a branch. The system returns the identifier of the user and the identifier of the branch:
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d",
"branchId": "PDL4GdCE%2fxiBbqyuKV9E3g%3d%3d"
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. |
| branchId | This is the unique identifier of the branch in the API. |
User/search
![]() | Searches for a user using search fields. |
Request
Example of request call content to search for a user.
IMPORTANT: search values are cumulative. For example, if you search for a login and an email address, only the records matching both criteria will be returned ("AND").
{
"login": "JasminDuberger1234",
"email": "jduberger@gmail.com",
“includeInactive” : false,
"customFields": {
"ismember": true,
"job_title": "Plombier",
"Num_membre": "DUBER109"
}
}Field descriptions
Name | Required | Comments/description |
login |
| Search field for the login of the user. (String type) This field is required if the other fields are empty. |
| Search field for the email address of the user. (String type) This field is required if the other fields are empty. | |
includeInactive |
| Search field used to define whether inactive users are to be included. (Boolean type) |
customFields |
| Search field for the custom fields. This field is required if the other fields are empty. |
Response
Example of response call content when searching for a user:
{
"id": "WhcMwDXxCq%2fsp4YP%2btHUjg%3d%3d",
"websiteId": "ZRtLSlsH5%2bKhhAxU0I4Lgg%3d%3d",
"login": "Jhemington",
"firstName": "Jessica",
"lastName": "Hemington",
"language": 1,
"email": "jhemington@sviesolutions.com",
"companyName": "SVIeSolutions",
"functionTitle": "Agentes des ressources humaines",
"hourlyWage": 0.00,
"phoneHome": "418 948-4848",
"phoneMobile": "418 948-4848",
"phoneWork": "418 948-4848",
"phonePublic": 0,
"timeZone": 10,
"address": "234, du Faubourg",
"address2": "bur. 404",
"postalCode": "1H1 H1H",
"city": "Québec",
"countryId": 37,
"stateId": 11,
"portalId": "pVwwetET1HGiEZIfRQOoxo%3d%3d",
"inscriptionDate": "2021-10-08T09:21:37.657",
"expirationDate": "0001-01-01T00:00:00",
"enableNotifications": true,
"viaAccessMode": 0,
"status": 0,
"customFields": {
"ismember": true,
"job_title": "RH",
"Num_membre": "17MQ198"
}
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. This parameter must be empty when the create method is used, but is required for edit mode. |
| websiteId | This is the unique identifier of the user in the Lära LMS interface. |
login | Login of the user. (String type, >=4 and <= 250 characters. It must be a unique identifier on the server) |
firstName | First name of the user. (String type, <=50 characters) |
lastName | Last name of the user. (String type, <=50 characters) |
language | The default display language can be set according to the following list of constants:
If this value is empty, the API uses the default language defined for the organization in which the user is created. (Number type) |
A format validation is performed by the web service in accordance with the RFC2822 standard (<=100 characters and the email address must be valid) | |
companyName | Company name of the user. (String type, <=100 characters) |
functionTitle | Position of the user in the organization. (String type, <= 100 characters) |
| hourlyWage | Hourly rate of the user. (Decimal type, <= 999, max 2 decimals) |
phoneHome | Telephone number of the user. (String type, <=40 characters) |
phoneMobile | Mobile telephone number of the user. (String type, <=40 characters) |
phoneWork | Work telephone number of the user. (String type, <=40 characters) |
phonePublic | The phonePublic field indicates which telephone number will be shared with the other Via users, according to the following list of constants:
When this parameter is empty, the value 0 is applied. (Number type) |
timeZone | Via users are invited to shared meetings without necessarily being in the same location. Via therefore allows each person to manage their own time zone in order to view the meetings in their local time. The complete list of constants (0 to 77) is available in the appendix of the document. |
address | Address of the user. (String type, <=100 characters) |
address2 | Additional information about the address (apartment, mailbox, floor). (String type, <=100 characters) |
postalCode | Postal code of the user. (String type, <=50 characters) |
city | City of the user. (String type, <=100 characters) |
countryId | Country of the user – Number type (See Appendix 3: Countries and States/Provinces). |
stateId | Number indicating the state of the user - Number type (See Appendix 3: Countries and States/Provinces). |
portalId | Identifier of the default portal of the user (String type) |
| inscriptionDate | The creation date of the user account. |
| expirationDate | The expiry date of the user account. |
enableNotifications | Indicates whether the user can receive by email the notifications related to the operation of the site and the promotional campaigns. Set to "true" by default (Boolean type) |
| viaAccessMode | Indicates the access mode to Via Classic, if your organization still uses that software.
|
| status | (Read only) Indicates the activation status of the user account.
(Number type) |
customFields | Custom fields linked to the user. |
User/getpermissionlist
![]() | Retrieves the list of rights profiles in the environment. |
Request
Example of request call content for the rights profiles of the environment:
{}Field descriptions
| Name | Required | Comments/description |
| The method does not require any parameter. |
Response
Example of response call content for the rights profiles of the environment:
[
{
"id": "tYGlIky4aK%2f7Z1joMMQL0g%3d%3d",
"name": {
"texts": [
{
"text": "Administrateur Système",
"languageId": 1
},
{
"languageId": 2
},
{
"languageId": 3
},
{
"languageId": 4
}
],
"ErrorID": 0
},
"description": {
"texts": [
{
"text": "Droits d'administrateur par défaut",
"languageId": 1
},
{
"languageId": 2
},
{
"languageId": 3
},
{
"languageId": 4
}
],
"ErrorID": 0
},
"isAdminPermission": true,
"isUserPermission": false
},
{
"id": "pJlqyk0x52S%2f5ZZGxAITFw%3d%3d",
"name": {
"texts": [
{
"text": "Utilisateur",
"languageId": 1
},
{
"text": "User",
"languageId": 2
},
{
"text": "Usuario",
"languageId": 3
},
{
"languageId": 4
}
],
"ErrorID": 0
},
"description": {
"texts": [
{
"text": "Droits d'utilisateur par défaut",
"languageId": 1
},
{
"text": "User by default",
"languageId": 2
},
{
"text": "Usuario por defecto",
"languageId": 3
},
{
"languageId": 4
}
],
"ErrorID": 0
},
"isAdminPermission": false,
"isUserPermission": true
}
]
Field descriptions
Name | Comments/description |
| id | This is the unique identifier of the rights profile in the API. |
| name | Administrative name of the rights profile.
|
| ErrorID | |
| description | Administrative description of the rights profile.
|
isAdminPermission | Indicates whether this is the default administrator permission. It cannot be modified or deleted, nor assigned by default to a user without specifying it. (Boolean type) |
isUserPermission | Indicates whether this is the default user permission. This property cannot be assigned to another permission. However, the capabilities of this permission can be modified in the administrator interface. (Boolean type) |
User/getsso
![]() | Retrieves the authentication token of a user. |
Request
Example of request call content for the authentication token of a user:
{
"id": "MS6Hj2EsyN8wvPrcAWAZMA%3d%3d",
"portalId": "Ej1w%2flaWRrB8V5JBIxl7Cg%3d%3d",
"refId": "WSmUkyUmFT%2bEGm2dllhihg%3d%3d",
"subRefId": "WSmUkyUmFT%2bEGm2dllhihg%3d%3d",
"redirectType": 4,
"urlRedirect": null,
"forceAccess": 1
}Field descriptions
Name | Required | Comments/description |
id | X | This is the unique identifier of the user in the API. (String type) |
portalId |
| Default portal for the customization and the sign out. If the value is empty, the default portal is used. (String type) |
refId |
| Reference ID based on the redirectType, required for modes 3, 4 and 8. (String type) |
subRefId |
| Reference ID based on the redirectType, required for mode 8, recording ID. (String type) It is important to retrieve the returnURL placed on the URL of the button that sends the user to the SSO, so that you can return them signed in within the right context. You must re-encode this parameter in URL format so that it is valid. |
redirectType | RedirectTypes
Note that the urlRedirect value is not required if the redirectType value is provided. | |
urlRedirect | This is the redirect URL once the user is authenticated. Note that the redirectType value is not required if the urlRedirect value is provided. | |
forceAccess |
| Optional parameter that is taken into account only for redirectType 8 (Via HTML5 application). |
Response
Example of response call content for the authentication token request of a user:
{
"urlSSO":"https://portailpreprod.sviesolutions.com/Web/SignInSSO?token=8c629721c8dc40c399fa454a289cc883"
}Field descriptions
Name | Comments/description |
urlSSO | URL to which the user is redirected upon sign-in. |
User/updatepicture
![]() | Modifies the profile picture of a user. |
Request
Example of request call content to modify the profile picture of a user:
{
"id": "R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
| Name | Required | Comments/description |
| id | X | This is the unique identifier of the user in the API. (String type) |
| file | X | File of the profile picture, transmitted in bytes format in a "file" node. See the note below about the "multipart/form-data" format. |
Response
Example of call content to modify the profile picture of a user. The system returns the identifier of the user:
{
"id":"R2gbgKeLz4xUqsTSfcwsNQ%3d%3d"
}Field descriptions
Name | Comments/description |
id | This is the unique identifier of the user in the API. |
Request to modify the profile picture of a user
IMPORTANT: The method requires the "Content-Type: multipart/form-data" format, where the first node must be named "data" and contain the identifier of the user. The picture must be in a "file" node in bytes format and must have a name (which does not matter, but it is what indicates that a file is being received).
{
"id": "DR7sYn48%2fuzi3b4fTGZ1nQ%3d%3d"
}Example
form.Add(New ByteArrayContent(request, 0, request.Length), "data")
form.Add(New ByteArrayContent(imageByteData, 0, mStream.Length), "file", "picture")
Result
POST /toto HTTP/1.1
Content-Length: 68137
Content-Type: multipart/form-data; boundary=xxBOUNDARYxx
Content-Disposition: form-data; name="data"
xxBOUNDARYxx
(The JSON containing the identifier)
xxBOUNDARYxx
Content-Disposition: form-data; name="file"; filename="picture"
Content-Type: image/jpeg
(content of the file sent)
xxBOUNDARYxx
IMPORTANT: The image will be cropped to a 320x240 format. A picture in portrait mode will be resized proportionally to take the full width, whereas a picture in landscape mode will be resized to take the full height (see image below). Transparency will be ignored.

User error code descriptions
Number | Message | Comments/description |
100 | Required id | You must provide an identifier for the user. |
101 | Invalid id | The identifier provided for the user is invalid. |
102 | Required branchId | You must provide an identifier for the branch. |
103 | Invalid branchId | The identifier provided for the branch is invalid. |
104 | Invalid password length | The password must contain between 3 and 250 characters inclusively. |
105 | Invalid password character | The password contains one or more forbidden characters. |
106 | Invalid login length | The login must contain between 3 and 250 characters inclusively. |
107 | Invalid login character | The login contains one or more forbidden characters. |
108 | Login already exists | The login you wish to use already exists. |
109 | Invalid first name length | The first name must contain between 1 and 50 characters inclusively. |
110 | Required first name | You must provide a first name. |
111 | Invalid last name length | The last name must contain between 1 and 50 characters inclusively. |
112 | Required last name | You must provide the last name. |
113 | Invalid email length | The email address must contain a maximum of 100 characters. |
114 | Invalid email format | The email address is not in a valid format. Example: address@domain.com |
115 | Required email | You must provide an email address. |
116 | Invalid companyName length | The organization name must contain a maximum of 100 characters inclusively. |
117 | Invalid functionTitle length | The position in the organization must contain a maximum of 100 characters inclusively. |
118 | Invalid phoneHome length | The home telephone number must contain a maximum of 40 characters inclusively. |
119 | Invalid phoneMobile length | The mobile telephone number must contain a maximum of 40 characters inclusively. |
120 | Invalid phoneWork length | The work telephone number must contain a maximum of 40 characters inclusively. |
121 | Invalid phonePublic | The public telephone value provided must be between 0 and 3 inclusively. |
122 | Invalid language | The language provided must be between 0 and 4 inclusively. |
123 | Required language | The language is required. |
124 | Invalid timezone | The time zone must be between 0 and 77 inclusively, with the exception of 52. |
125 | Invalid billToName length | The field must contain a maximum of 250 characters inclusively. |
126 | Invalid address length | The address must contain a maximum of 100 characters inclusively. |
127 | Invalid city length | The city name must contain a maximum of 100 characters inclusively. |
128 | Invalid postalCode length | The postal code must contain a maximum of 50 characters inclusively. |
129 | Invalid address2 length | The address 2 must contain a maximum of 100 characters inclusively. |
130 | Search field required | You must provide at least one of the following three fields when searching: Login, Email or customFields. |
131 | Invalid data | An error occurred while creating the user. Contact support if you get this error. |
132 | Invalid redirectType | The redirect type must be between 1 and 5, or 8. |
133 | Invalid portalId | The identifier provided for the portal is invalid. |
134 | Invalid refId | The reference identifier based on the redirectType is invalid. It is only required for modes 3, 4 and 8. |
135 | Invalid urlRedirect | The redirect URL is invalid. Use the following template: https://domaine.com |
141 | Invalid subRefId | The reference identifier based on the redirectType is invalid. It is only required for mode 8. |
| 142 | Invalid approverUserId | The identifier provided for the approver user is invalid |
| 143 | ApproverUserId does not have right | The approver user identifier does not have the right to view approvals |
| 144 | Invalid hourlyWage Value | The value must have a maximum of 2 decimals and be between 0 and 999 inclusively |
| 145 | Can't delete user | When the user is linked to an external connector, it cannot be deleted. |














