PrismaCloud IAM
The Prisma Cloud IAM API consists of a set of API endpoints that allow customers to perform CRUD operation on their user profiles.
Identity and Access Management · Prisma Cloud by Palo Alto Networks
Details
| ID | PrismaCloud IAM |
|---|---|
| Provider | Palo Alto Networks |
| Category | Identity and Access Management |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Supported Modules | Agentix XSIAM EDR Cortex Cloud Cloud Runtime Security |
README
Note: This integration should be used as part of our Identity Lifecycle Management premium pack. For more information, please refer to the Identity Lifecycle Management article.
The Prisma Cloud IAM API consists of a set of API endpoints that allow customers to perform CRUD operation on their user profiles.
Configure PrismaCloud IAM in Cortex
| Parameter | Description | Required |
|---|---|---|
| Base URL | True | |
| Username | True | |
| Password | True | |
| Customer name | If you are a multi-tenant user you will also need to provide the customerName. | False |
| Trust any certificate (not secure) | False | |
| Use system proxy settings | False | |
| Allow creating users | False | |
| Allow updating users | False | |
| Allow enabling users | False | |
| Allow disabling users | False | |
| Automatically create user if not found in update command | False | |
| Incoming Mapper | True | |
| Outgoing Mapper | Cortex XSOAR only parameter. | False |
Commands
You can execute these commands from the CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.
iam-create-user
Creates a user.
Base Command
iam-create-user
Input
| Argument Name | Description | Required |
|---|---|---|
| user-profile | User Profile indicator details. | Required |
| allow-enable | When set to true, after the command execution the status of the user in the 3rd-party integration will be active. Possible values are: true, false. Default is true. | Optional |
Context Output
| Path | Type | Description |
|---|---|---|
| IAM.Vendor.active | Boolean | When true, indicates that the employee’s status is active in the 3rd-party integration. |
| IAM.Vendor.brand | String | Name of the integration. |
| IAM.Vendor.details | string | Provides the raw data from the 3rd-party integration. |
| IAM.Vendor.email | String | The employee’s email address. |
| IAM.Vendor.errorCode | Number | HTTP error response code. |
| IAM.Vendor.errorMessage | String | Reason why the API failed. |
| IAM.Vendor.id | String | The employee’s user ID in the app. |
| IAM.Vendor.instanceName | string | Name of the integration instance. |
| IAM.Vendor.success | Boolean | When true, indicates that the command was executed successfully. |
| IAM.Vendor.username | String | The employee’s username in the app. |
Command Example
!iam-create-user user-profile=`{"email": "john.doe@example.com", "givenname": "test", "surname": "test"}`
Context Example
{
"IAM": {
"UserProfile": {
"email": "john.doe@example.com",
"givenname": "test",
"surname": "test"
},
"Vendor": {
"action": "update",
"active": null,
"brand": "PrismaCloudIAM",
"details": {
"email": "john.doe@example.com",
"firstName": "test",
"lastName": "test",
"roleId": "some_role_id",
"timeZone": "America/Los_Angeles"
},
"email": "john.doe@example.com",
"errorCode": null,
"errorMessage": "",
"id": null,
"instanceName": "PrismaCloudIAM_instance_1",
"reason": "",
"skipped": false,
"success": true,
"username": null
}
}
}
Human Readable Output
Update User Results (PrismaCloudIAM)
brand instanceName success details PrismaCloudIAM PrismaCloudIAM_instance_1 true john.doe@example.com email: john.doe@example.com
firstName: test
lastName: test
roleId: some_role_id
timeZone: America/Los_Angeles
iam-update-user
Updates an existing user with the data passed in the user-profile argument.
Base Command
iam-update-user
Input
| Argument Name | Description | Required |
|---|---|---|
| user-profile | A User Profile indicator. | Required |
| allow-enable | When set to true, after the command execution the status of the user in the 3rd-party integration will be active. Possible values are: true, false. Default is true. | Optional |
Context Output
| Path | Type | Description |
|---|---|---|
| IAM.Vendor.active | Boolean | When true, indicates that the employee’s status is active in the 3rd-party integration. |
| IAM.Vendor.brand | String | Name of the integration. |
| IAM.Vendor.details | string | Provides the raw data from the 3rd-party integration. |
| IAM.Vendor.email | String | The employee’s email address. |
| IAM.Vendor.errorCode | Number | HTTP error response code. |
| IAM.Vendor.errorMessage | String | Reason why the API failed. |
| IAM.Vendor.id | String | The employee’s user ID in the app. |
| IAM.Vendor.instanceName | string | Name of the integration instance. |
| IAM.Vendor.success | Boolean | When true, indicates that the command was executed successfully. |
| IAM.Vendor.username | String | The employee’s username in the app. |
Command Example
!iam-update-user user-profile=`{"email": "john.doe@example.com", "givenname": "John"}`
Context Example
{
"IAM": {
"UserProfile": {
"email": "john.doe@example.com",
"givenname": "John"
},
"Vendor": {
"action": "update",
"active": null,
"brand": "PrismaCloudIAM",
"details": {
"email": "john.doe@example.com",
"firstName": "John",
"roleId": "some_role_id",
"timeZone": "America/Los_Angeles"
},
"email": "john.doe@example.com",
"errorCode": null,
"errorMessage": "",
"id": null,
"instanceName": "PrismaCloudIAM_instance_1",
"reason": "",
"skipped": false,
"success": true,
"username": null
}
}
}
Human Readable Output
Update User Results (PrismaCloudIAM)
brand instanceName success details PrismaCloudIAM PrismaCloudIAM_instance_1 true john.doe@example.com email: john.doe@example.com
firstName: John
roleId: some_role_id
timeZone: America/Los_Angeles
iam-get-user
Retrieves a single user resource.
Base Command
iam-get-user
Input
| Argument Name | Description | Required |
|---|---|---|
| user-profile | A User Profile indicator. | Required |
Context Output
| Path | Type | Description |
|---|---|---|
| IAM.Vendor.active | Boolean | When true, indicates that the employee’s status is active in the 3rd-party integration. |
| IAM.Vendor.brand | String | Name of the integration. |
| IAM.Vendor.details | string | Provides the raw data from the 3rd-party integration. |
| IAM.Vendor.email | String | The employee’s email address. |
| IAM.Vendor.errorCode | Number | HTTP error response code. |
| IAM.Vendor.errorMessage | String | Reason why the API failed. |
| IAM.Vendor.id | String | The employee’s user ID in the app. |
| IAM.Vendor.instanceName | string | Name of the integration instance. |
| IAM.Vendor.success | Boolean | When true, indicates that the command was executed successfully. |
| IAM.Vendor.username | String | The employee’s username in the app. |
Command Example
!iam-get-user user-profile=`{"email": "john.doe@example.com"}`
Context Example
{
"IAM": {
"UserProfile": {
"Display Name": "test test",
"Email": "john.doe@example.com",
"Given Name": "test",
"Surname": "test"
},
"Vendor": {
"action": "get",
"active": true,
"brand": "PrismaCloudIAM",
"details": {
"accessKeysAllowed": true,
"displayName": "test test",
"email": "john.doe@example.com",
"enabled": true,
"firstName": "test",
"lastLoginTs": -1,
"lastModifiedBy": "modifier@example.com",
"lastModifiedTs": 1628152142011,
"lastName": "test",
"role": {
"id": "some_role_id",
"name": "System Admin"
},
"roleId": "some_role_id",
"roleType": "System Admin",
"timeZone": "America/Los_Angeles"
},
"email": null,
"errorCode": null,
"errorMessage": "",
"id": "john.doe@example.com",
"instanceName": "PrismaCloudIAM_instance_1",
"reason": "",
"skipped": false,
"success": true,
"username": null
}
}
}
Human Readable Output
Get User Results (PrismaCloudIAM)
brand instanceName success active id details PrismaCloudIAM PrismaCloudIAM_instance_1 true true john.doe@example.com email: john.doe@example.com
firstName: test
lastName: test
timeZone: America/Los_Angeles
enabled: true
roleId: some_role_id
lastModifiedBy: modifier@example.com
lastModifiedTs: 1628152142011
lastLoginTs: -1
role: {“id”: “some_role_id”, “name”: “System Admin”}
roleType: System Admin
displayName: test test
accessKeysAllowed: true
iam-disable-user
Disable an active user.
Base Command
iam-disable-user
Input
| Argument Name | Description | Required |
|---|---|---|
| user-profile | A User Profile indicator. | Required |
Context Output
| Path | Type | Description |
|---|---|---|
| IAM.Vendor.active | Boolean | When true, indicates that the employee’s status is active in the 3rd-party integration. |
| IAM.Vendor.brand | String | Name of the integration. |
| IAM.Vendor.details | string | Provides the raw data from the 3rd-party integration. |
| IAM.Vendor.email | String | The employee’s email address. |
| IAM.Vendor.errorCode | Number | HTTP error response code. |
| IAM.Vendor.errorMessage | String | Reason why the API failed. |
| IAM.Vendor.id | String | The employee’s user ID in the app. |
| IAM.Vendor.instanceName | string | Name of the integration instance. |
| IAM.Vendor.success | Boolean | When true, indicates that the command was executed successfully. |
| IAM.Vendor.username | String | The employee’s username in the app. |
Command Example
!iam-disable-user user-profile=`{"email": "john.doe@example.com", "givenname": "John"}`
Context Example
{
"IAM": {
"UserProfile": {
"email": "john.doe@example.com",
"givenname": "John"
},
"Vendor": {
"action": "disable",
"active": false,
"brand": "PrismaCloudIAM",
"details": null,
"email": "john.doe@example.com",
"errorCode": null,
"errorMessage": "",
"id": null,
"instanceName": "PrismaCloudIAM_instance_1",
"reason": "",
"skipped": false,
"success": true,
"username": null
}
}
}
Human Readable Output
Disable User Results (PrismaCloudIAM)
brand instanceName success active PrismaCloudIAM PrismaCloudIAM_instance_1 true false john.doe@example.com
Outgoing Mapper
- In the
User Profile - PrismaCloudIAM (Outgoing)you should manually configure and map the following required attributes:- timeZone - the time zone of the user.
- roleId - the id of the role assigned to the user
Configuration parameters
url— Base URL (required)credentials— Username (required)customer_name— Customer nameinsecure— Trust any certificate (not secure)proxy— Use system proxy settingscreate_user_enabled— Allow creating usersupdate_user_enabled— Allow updating usersenable_user_enabled— Allow enabling usersdisable_user_enabled— Allow disabling userscreate_if_not_exists— Automatically create user if not found in update commandmapper_in— Incoming Mapper (required)mapper_out— Outgoing Mapper
Commands (5)
-
get-mapping-fieldsRetrieves a User Profile schema, which holds all of the user fields within the application. Used for outgoing-mapping through the Get Schema option.
-
iam-create-userCreates a user.
-
iam-disable-userDisable an active user.
-
iam-get-userRetrieves a single user resource.
-
iam-update-userUpdates an existing user with the data passed in the user-profile argument.
category: Identity and Access Management provider: Palo Alto Networks sectionorder: - Connect - Collect commonfields: id: PrismaCloud IAM version: -1 configuration: - display: Base URL name: url required: true type: 0 section: Connect - display: Username name: credentials required: true type: 9 section: Connect - display: Customer name additionalinfo: If you are a multi-tenant user you will also need to provide the customerName. name: customer_name type: 0 section: Connect advanced: true required: false - display: Trust any certificate (not secure) name: insecure type: 8 section: Connect advanced: true required: false - display: Use system proxy settings name: proxy type: 8 section: Connect advanced: true required: false - defaultvalue: 'true' display: Allow creating users name: create_user_enabled type: 8 section: Collect advanced: true required: false - defaultvalue: 'true' display: Allow updating users name: update_user_enabled type: 8 section: Collect advanced: true required: false - defaultvalue: 'true' display: Allow enabling users name: enable_user_enabled type: 8 section: Collect advanced: true required: false - defaultvalue: 'true' display: Allow disabling users name: disable_user_enabled type: 8 section: Collect advanced: true required: false - defaultvalue: 'true' display: Automatically create user if not found in update command name: create_if_not_exists type: 8 section: Collect advanced: true required: false - defaultvalue: User Profile - PrismaCloud (Incoming) display: Incoming Mapper name: mapper_in required: true type: 0 section: Connect - defaultvalue: User Profile - PrismaCloud (Outgoing) display: Outgoing Mapper name: mapper_out required: false type: 0 section: Connect hidden: - marketplacev2 - platform additionalinfo: Cortex XSOAR only parameter. description: 'The Prisma Cloud IAM API consists of a set of API endpoints that allow customers to perform CRUD operation on their user profiles.' display: PrismaCloud IAM name: PrismaCloud IAM script: commands: - arguments: - description: User Profile indicator details. name: user-profile required: true - auto: PREDEFINED defaultValue: 'true' description: When set to true, after the command execution the status of the user in the 3rd-party integration will be active. name: allow-enable predefined: - 'true' - 'false' description: Creates a user. execution: true name: iam-create-user outputs: - contextPath: IAM.Vendor.active description: When true, indicates that the employee's status is active in the 3rd-party integration. type: Boolean - contextPath: IAM.Vendor.brand description: Name of the integration. type: String - contextPath: IAM.Vendor.details description: Provides the raw data from the 3rd-party integration. type: string - contextPath: IAM.Vendor.email description: The employee's email address. type: String - contextPath: IAM.Vendor.errorCode description: HTTP error response code. type: Number - contextPath: IAM.Vendor.errorMessage description: Reason why the API failed. type: String - contextPath: IAM.Vendor.id description: The employee's user ID in the app. type: String - contextPath: IAM.Vendor.instanceName description: Name of the integration instance. type: string - contextPath: IAM.Vendor.success description: When true, indicates that the command was executed successfully. type: Boolean - contextPath: IAM.Vendor.username description: The employee's username in the app. type: String - arguments: - description: A User Profile indicator. name: user-profile required: true - auto: PREDEFINED defaultValue: 'true' description: When set to true, after the command execution the status of the user in the 3rd-party integration will be active. name: allow-enable predefined: - 'true' - 'false' description: Updates an existing user with the data passed in the user-profile argument. execution: true name: iam-update-user outputs: - contextPath: IAM.Vendor.active description: When true, indicates that the employee's status is active in the 3rd-party integration. type: Boolean - contextPath: IAM.Vendor.brand description: Name of the integration. type: String - contextPath: IAM.Vendor.details description: Provides the raw data from the 3rd-party integration. type: string - contextPath: IAM.Vendor.email description: The employee's email address. type: String - contextPath: IAM.Vendor.errorCode description: HTTP error response code. type: Number - contextPath: IAM.Vendor.errorMessage description: Reason why the API failed. type: String - contextPath: IAM.Vendor.id description: The employee's user ID in the app. type: String - contextPath: IAM.Vendor.instanceName description: Name of the integration instance. type: string - contextPath: IAM.Vendor.success description: When true, indicates that the command was executed successfully. type: Boolean - contextPath: IAM.Vendor.username description: The employee's username in the app. type: String compliantpolicies: - User Hard Remediation - arguments: - description: A User Profile indicator. name: user-profile required: true description: Retrieves a single user resource. name: iam-get-user outputs: - contextPath: IAM.Vendor.active description: When true, indicates that the employee's status is active in the 3rd-party integration. type: Boolean - contextPath: IAM.Vendor.brand description: Name of the integration. type: String - contextPath: IAM.Vendor.details description: Provides the raw data from the 3rd-party integration. type: string - contextPath: IAM.Vendor.email description: The employee's email address. type: String - contextPath: IAM.Vendor.errorCode description: HTTP error response code. type: Number - contextPath: IAM.Vendor.errorMessage description: Reason why the API failed. type: String - contextPath: IAM.Vendor.id description: The employee's user ID in the app. type: String - contextPath: IAM.Vendor.instanceName description: Name of the integration instance. type: string - contextPath: IAM.Vendor.success description: When true, indicates that the command was executed successfully. type: Boolean - contextPath: IAM.Vendor.username description: The employee's username in the app. type: String - arguments: - description: A User Profile indicator. name: user-profile required: true description: Disable an active user. execution: true name: iam-disable-user outputs: - contextPath: IAM.Vendor.active description: When true, indicates that the employee's status is active in the 3rd-party integration. type: Boolean - contextPath: IAM.Vendor.brand description: Name of the integration. type: String - contextPath: IAM.Vendor.details description: Provides the raw data from the 3rd-party integration. type: string - contextPath: IAM.Vendor.email description: The employee's email address. type: String - contextPath: IAM.Vendor.errorCode description: HTTP error response code. type: Number - contextPath: IAM.Vendor.errorMessage description: Reason why the API failed. type: String - contextPath: IAM.Vendor.id description: The employee's user ID in the app. type: String - contextPath: IAM.Vendor.instanceName description: Name of the integration instance. type: string - contextPath: IAM.Vendor.success description: When true, indicates that the command was executed successfully. type: Boolean - contextPath: IAM.Vendor.username description: The employee's username in the app. type: String compliantpolicies: - User Hard Remediation - description: Retrieves a User Profile schema, which holds all of the user fields within the application. Used for outgoing-mapping through the Get Schema option. name: get-mapping-fields dockerimage: demisto/python3:3.12.13.10116658 runonce: false script: '-' subtype: python3 type: python ismappable: true isremotesyncout: true tests: - No tests fromversion: 6.0.0