Get Permissions V3
POST/iam/api/v3/search/permission
Returns a page of permissions and a page token for the next page if applicable
Request
Query Parameters
Query records limit
- application/json
Body
required
RQL query
An optional saved search id. If not provided, a new saved search will be created.
Page Token
Responses
- 200
- 400
- 401
- 403
- 404
- 429
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
data object
items object[]
items list
Message id
Is source public
Source cloud type
Source cloud account
Source cloud region
Source cloud service name
Source cloud resource name
Source cloud resource type
Source cloud resource id
Source IDP service
Source IDP domain
Source IDP email
Source IDP user name
Source IDP group
Source idp RRN
Source idp UAI
Source cloud resource RRN
Source cloud resource UAI
Destination cloud type
Destination cloud account
Destination cloud region
Destination cloud service name
Destination cloud resource name
Destination cloud resource type
Destination cloud resource id
Destination cloud resource RRN
Destination cloud resource UAI
Effective action name
Granted by cloud type
Granted by cloud policy Id
Granted by cloud policy name
Granted by cloud policy type
Granted by cloud policy rrn
Granted by cloud policy UAI
Granted by cloud entity id
Granted by cloud entity name
Granted by cloud entity type
Accessed resource count
Last accessed data
Last accessed status
Granted by cloud entity rrn
Granted by cloud entity UAI
Is destination cloud resource name a wildcard
exceptions object[]
Permission exception list
Message code
Granted by level type
Granted by level id
Granted by level name
Granted by level rrn
Granted by level UAI
Next page token
Total rows count
Searched destination cloud resource names
Query string
Request user Id
Is search saved
Search name
timeRange object
The time range which the query run at to generate the alert
Search type
Search description
Cloud Type
{
"data": {
"items": [
{
"id": "13",
"sourcePublic": false,
"sourceCloudType": "AWS",
"sourceCloudAccount": "123456789",
"sourceCloudRegion": "AWS London",
"sourceCloudServiceName": "iam",
"sourceResourceName": "john",
"sourceResourceType": "user",
"sourceResourceId": "arn:aws:iam::111111:user/john",
"sourceIdpService": "string",
"sourceIdpDomain": "string",
"sourceIdpEmail": "string",
"sourceIdpUsername": "string",
"sourceIdpGroup": "string",
"sourceIdpRrn": "rrn::other::idp-account-id::idp-user-id",
"sourceIdpUai": "681390424b288d835f5cd03e7bfb0993",
"sourceCloudResourceRrn": "rrn::iamUser::123456789012::AIDAIDAIDAIDAIDAIDAID",
"sourceCloudResourceUai": "681390624b288d835f4cd03e7bfb0994",
"destCloudType": "AWS",
"destCloudAccount": "123456789",
"destCloudRegion": "AWS London",
"destCloudServiceName": "iam",
"destResourceName": "john",
"destResourceType": "user",
"destResourceId": "arn:aws:iam::111111:user/john",
"destCloudResourceRrn": "rrn::other:eu-west-2:123456789012::my-function",
"destCloudResourceUai": "181390424b298d835f4cd03e7bfb0991",
"effectiveActionName": "string",
"grantedByCloudType": "AWS",
"grantedByCloudPolicyId": "arn:aws:iam::aws:policy/aws-policy",
"grantedByCloudPolicyName": "my-policy",
"grantedByCloudPolicyType": "Customer Managed Policy",
"grantedByCloudPolicyRrn": "rrn::iamPolicy::123456789012::arn:aws:iam:eu-west-2",
"grantedByCloudPolicyUai": "771390424b298d835f4cd03e7bfb0232",
"grantedByCloudEntityId": "arn:aws:iam::<account>:role/my-role",
"grantedByCloudEntityName": "my-role",
"grantedByCloudEntityType": "user",
"accessedResourcesCount": 0,
"lastAccessDate": "string",
"lastAccessStatus": "string",
"grantedByCloudEntityRrn": "rrn::other::123456789:AIDAIDAIDAIDAIDAIDAID",
"grantedByCloudEntityUai": "223390424b298d835f4cd03e7bfb0111",
"isWildCardDestCloudResourceName": false,
"exceptions": [
[
{
"messageCode": "LIMITED_BY_DENY_STATEMENT"
}
]
],
"grantedByLevelType": "GCP Folder",
"grantedByLevelId": "level_id",
"grantedByLevelName": "level_name",
"grantedByLevelRrn": "level_rrn",
"grantedByLevelUai": "123390424cb99d835f4cd03e7bfb0991"
}
],
"nextPageToken": "iam/api/{apiVersion}/{apiPath}?page-token=Q74589g444gg",
"totalRows": 1243,
"searchedDestCloudResourceNames": []
},
"query": "config from iam where ...",
"id": "111111",
"saved": true,
"name": "search-name",
"timeRange": "{''type': 'relative', 'value': {'unit': 'day', 'amount': 7} }",
"searchType": "search-type",
"description": "search-description",
"cloudType": "aws"
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
error object
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error object
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
error object
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
error object
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Throttled
Response Headers
X-RateLimit-Remaining integer
X-RateLimit-Requested-Tokens integer
X-RateLimit-Burst-Capacity integer
X-RateLimit-Replenish-Rate integer