User is always getting access to API Key

Reply
Highlighted
L1 Bithead

User is always getting access to API Key

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.


Accepted Solutions
Highlighted
L2 Linker

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.

View solution in original post


All Replies
Highlighted
L2 Linker

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.

View solution in original post

L1 Bithead

Please elaborate more on your below point, We have a feature request to have that modifiable for system admins as well

Highlighted
L2 Linker

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.

Highlighted
L1 Bithead

Thank You

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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 Live Community as a whole!

The Live Community thanks you for your participation!