- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-04-2019 09:35 AM - last edited on 09-02-2020 10:21 AM by kwadsack
I am inserting a user into "Prisma Cloud" through API (https://api.prismacloud.io/user) with the request body as,
var userDetails = {
"email": email,
"firstName": firstName,
"lastName": lastName,
"timeZone": "America/Los_Angeles",
"roleId": <role id of system admin>,
"accessKeysAllowed": false
};
This user has access to "Access Key" but I am passing parameter "accessKeysAllowed": false in the body.
Where I am doing wrong.
10-07-2019 02:01 AM
Hello @SRKhan007
System Admins by default get access keys allowed to them without an option to change it upon creation, similar to how it does so in the UI.
You are not doing anything wrong here.
We have a feature request to have that modifiable for system admins as well, but that's by design at the moment.
Users with other role types can have access key creation option as disabled.
10-07-2019 02:01 AM
Hello @SRKhan007
System Admins by default get access keys allowed to them without an option to change it upon creation, similar to how it does so in the UI.
You are not doing anything wrong here.
We have a feature request to have that modifiable for system admins as well, but that's by design at the moment.
Users with other role types can have access key creation option as disabled.
10-07-2019 04:37 AM
Please elaborate more on your below point, We have a feature request to have that modifiable for system admins as well
10-07-2019 04:42 AM
This is not available yet and is a feature request.
Currently, System Admins by default have the option to create access keys and one cannot modify that.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!