Update a Remote Access vendor using the API
Objective
This guide will focus on the PUT to '/v2-edge/vendors/{vendorId}' API:
Environment
Alero SaaS
Procedure
For Self-Hosted Environments, please use the following format:
{
"username": "xxxxxx",
"canInvite": false,
"status": "Activated",
"applications": [
{
"siteId": "xxxxxxxxxx",
"applicationId": "xxxxxxx"
}
],
"comments": "",
"accessStartDate": 1747699200000,
"accessEndDate": 1769903999000,
"groups": [
"xxxxxxxx"
],
"invitedVendorsInitialStatus": "RequiresAdminConfirmation",
"provisioningType": "ProvisionedByAlero"
}
------
For Privilege Cloud Environments:
{
"accessStartDate": 1747699200000,
"accessEndDate": 1769903999000,
"canInvite": false,
"invitedVendorsInitialStatus": "Activated",
"provisioningType": "ProvisionedByAlero",
"username": "xxxxxx",
"groups": [
"xxxxx"
],
"idaptiveRoles": [
"xxxxxx"
],
"comments": "",
"applications": [
{
"siteId": "xxxx",
"applicationId": "xxxx"
}
],
"pvwaApplications": true
}
Regarding the pvwaApplications setting, in the Remote Access Portal > Settings > User Management sources, there should be a setting like 'Vendor access to Identity web applications' if this is enabled you should set pvwaApplications = true.
-------
You can use the GET API (https://api.alero.eu/swagger-ui/index.html?urls.primaryName=v2-edge#/vendors-controller-v-2/getVendorById) to first get the information about the vendor, if you are unsure about the ID values. But ensure you use the format above, or it will throw an error.
You must ensure that the groups section use this format:
"groups": [
"xxxxxxxx"
],
If you use a JSON object rather than a string it will fail.