<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Privilege Cloud Shared Services - Automate with REST API &amp; PowerShell in PAM SaaS Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-saas-articles/privilege-cloud-shared-services-automate-with-rest-api/ta-p/1428557</link>
    <description>&lt;H1&gt;Privilege Cloud Shared Services - Automate with REST API &amp;amp; PowerShell&lt;/H1&gt;
&lt;H2&gt;Resources:&lt;/H2&gt;
&lt;UL&gt;&lt;LI&gt;Idira Docs - &lt;A href="https://docs.cyberark.com/PrivCloud-SS/Latest/en/Content/WebServices/Implementing Privileged Account Security Web Services .htm" target="_blank"&gt;Privilege Cloud API (Shared Services)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Idira Docs - &lt;A href="https://identity-developer.cyberark.com/reference/get-started-with-cyberark-identity-apis" target="_blank"&gt;Idira Identity API&lt;/A&gt;
&lt;UL&gt;&lt;LI&gt;Note: Most Privilege Cloud customers would not call the Identity API directly, but rather would use ‘IdentityAuthentication.psm1’ detailed below to get the token needed to call the Privilege Cloud API.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Postman or another 3rd party tool (Individual, customizable API calls from a central dashboard)&amp;nbsp;
	&lt;UL&gt;&lt;LI&gt;To use Postman on Shared Services with the Identity Authentication script (detailed below):
		&lt;UL&gt;&lt;LI&gt;Identity bearer token becomes {{pasSessionToken}} variable:&lt;/LI&gt;&lt;LI&gt;Copy $header.Authorization returned from IdentityAuth.psm1&lt;/LI&gt;&lt;LI&gt;Copy all the text, starting with “Bearer xyz123…”, to the Postman {{pasSessionToken}} variable.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Idira GitHub repositories (ready-to-go PowerShell scripts for common actions)
	&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/cyberark/epv-api-scripts" target="_blank"&gt;https://github.com/cyberark/epv-api-scripts&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Identity authentication script (Required for Shared Services)
		&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/cyberark/epv-api-scripts/tree/main/Identity Authentication" target="_blank"&gt;https://github.com/cyberark/epv-api-scripts/tree/main/Identity%20Authentication&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;This script authenticates a user to Idira Identity on the Shared Services platform and returns an authorization bearer token that can be used in other services (like Privilege Cloud)&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;H1&gt;Instruction examples for Authentication, Safe Management, Account Onboarding, and Platform Management&lt;/H1&gt;
&lt;H3&gt;Identity Authentication&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;Download the Identity Authentication script, place it in the same folder as any other Idira scripts, and run the following PowerShell commands to generate and store the authentication token:&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
Import-Module .\IdentityAuth.psm1
$header = Get-IdentityHeader&lt;/PRE&gt;
&lt;UL&gt;&lt;LI&gt;You will then be prompted for tenant URL and username&lt;/LI&gt;&lt;LI&gt;To provide tenant ID and username in the command:&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
$header = Get-IdentityHeader -IdentityTenantURL abc1234.id.cyberark.cloud -IdentityUserName apiuser@cyberark.cloud.1234&lt;/PRE&gt;
&lt;UL&gt;&lt;LI&gt;Identity URL can be found in Identity Administration &amp;gt; Settings &amp;gt; Customization &amp;gt; Tenant URLs
	&lt;UL&gt;&lt;LI&gt;May be ‘xyz1234.my.idaptive.app’&lt;/LI&gt;&lt;LI&gt;May be ‘xyz1234.id.cyberark.cloud’&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Note: you can type ‘$header’ into PowerShell to view and verify your token is being stored properly&lt;/LI&gt;&lt;LI&gt;$header.Authorization will display the full token
	&lt;UL&gt;&lt;LI&gt;Starts with the word &lt;U&gt;&lt;STRONG&gt;‘bearer’ – this is part of the token!&lt;/STRONG&gt;&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;This is the exact token you need to provide in Privilege Cloud API calls in the ‘Authorization’ header.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;H3&gt;Safe management&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;Add ‘memberType’ to the example .csv for Shared Services imports
	&lt;UL&gt;&lt;LI&gt;Options for ‘memberType’ are ‘User’, ‘Group’ or ‘Role’&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;How to pass the Identity authentication token to the script:&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
Import-Module .\IdentityAuth.psm1
$header = Get-IdentityHeader -IdentityTenantURL abc1234.id.cyberark.cloud -IdentityUserName apiuser@cyberark.cloud.1234
&amp;amp; .\Safe-Management.ps1 -PVWAURL https://subdomain.privilegecloud.cyberark.cloud/PasswordVault -Add -FilePath "C:\Temp\safes-sample.csv" -LogonToken $header&lt;/PRE&gt;
&lt;H3&gt;Account Onboarding Utility&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;Accepts -LogonToken as expected&lt;/LI&gt;&lt;LI&gt;How to pass the Identity authentication token to the script:&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
Import-Module .\IdentityAuth.psm1
$token = Get-IdentityHeader -IdentityTenantURL abc1234.id.cyberark.cloud -IdentityUserName apiuser@cyberark.cloud.1234
.\Accounts_Onboard_Utility.ps1 -PVWAURL https://subdomain.privilegecloud.cyberark.cloud/PasswordVault -CsvPath .\account-onboarding.csv -Create -BypassAccountSearch -LogonToken $token&lt;/PRE&gt;
&lt;H3&gt;Platform management&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;How to pass the Identity authentication token to the script:&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
Import-Module .\IdentityAuth.psm1
$header = Get-IdentityHeader -IdentityTenantURL abc1234.id.cyberark.cloud -IdentityUserName apiuser@cyberark.cloud.1234
&amp;amp; .\Export-Import-Platform.ps1 -ImportFile -PVWAURL https://subdomain.privilegecloud.cyberark.cloud/PasswordVault -ListFile &amp;lt;The path to the txt file with the ZIP files to import&amp;gt; -logonToken $header&lt;/PRE&gt;
&amp;nbsp;

&lt;H3&gt;Informational API Procedures on Shared Services&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;APIs for use with Privilege Cloud are based in Idira Identity and non-interactive by design (they can authorize API calls, but not log into the Identity UI)
	&lt;UL&gt;&lt;LI&gt;Idira recommends creating a dedicated API service user for non-interactive API.
		&lt;UL&gt;&lt;LI&gt;This service user would then be managed using Idira AAM (a Credential Provider or Central Credential Provider&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Interactive API (using a standard user account) should follow Identity documentation.
		&lt;UL&gt;&lt;LI&gt;May also be able to leverage Identity Authentication GitHub script&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;How to create a Service user for API requests
	&lt;UL&gt;&lt;LI&gt;Public documentation: &lt;A href="https://docs.cyberark.com/Product-Doc/OnlineHelp/PrivCloud-SS/Latest/en/Content/ISPSS/ISPSS-API-Authentication.htm" target="_blank"&gt;API Authentication on Identity Security Platform&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Identity Admin portal &amp;gt; Users &amp;gt; Add User
		&lt;UL&gt;&lt;LI&gt;Enter login name, display name and password. Email address not required.&lt;/LI&gt;&lt;LI&gt;Status box should have three items checked:
			&lt;UL&gt;&lt;LI&gt;Password never expires&lt;/LI&gt;&lt;LI&gt;Is Service User&lt;/LI&gt;&lt;LI&gt;Is OAuth confidential client&lt;/LI&gt;&lt;LI&gt;Click ‘Create User’&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Add the API user to the required Privilege Cloud Roles in Identity
		&lt;UL&gt;&lt;LI&gt;Identity Admin Portal &amp;gt; Roles
			&lt;UL&gt;&lt;LI&gt;For example, ‘Privilege Cloud Admins’ role is required to add users, while ‘Privilege Cloud Auditors’ role may be required to pull a complete list of Safes.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;How to report on API usage in Shared Services Privilege Cloud (Identity)
	&lt;UL&gt;&lt;LI&gt;Identity Administration &amp;gt; Core Services &amp;gt; Reports &amp;gt; click ‘OAuth Events report’ &amp;gt; Set report filters (time range) &amp;gt; OK
		&lt;UL&gt;&lt;LI&gt;Report is displayed &amp;gt; AppId ‘_widgetOAuthApp’ corresponds to Shared Services API tokens&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 05 Nov 2026 20:00:31 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2026-11-05T20:00:31Z</dc:date>
    <item>
      <title>Privilege Cloud Shared Services - Automate with REST API &amp; PowerShell</title>
      <link>https://live.paloaltonetworks.com/t5/pam-saas-articles/privilege-cloud-shared-services-automate-with-rest-api/ta-p/1428557</link>
      <description>&lt;H1&gt;Privilege Cloud Shared Services - Automate with REST API &amp;amp; PowerShell&lt;/H1&gt;
&lt;H2&gt;Resources:&lt;/H2&gt;
&lt;UL&gt;&lt;LI&gt;Idira Docs - &lt;A href="https://docs.cyberark.com/PrivCloud-SS/Latest/en/Content/WebServices/Implementing Privileged Account Security Web Services .htm" target="_blank"&gt;Privilege Cloud API (Shared Services)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Idira Docs - &lt;A href="https://identity-developer.cyberark.com/reference/get-started-with-cyberark-identity-apis" target="_blank"&gt;Idira Identity API&lt;/A&gt;
&lt;UL&gt;&lt;LI&gt;Note: Most Privilege Cloud customers would not call the Identity API directly, but rather would use ‘IdentityAuthentication.psm1’ detailed below to get the token needed to call the Privilege Cloud API.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Postman or another 3rd party tool (Individual, customizable API calls from a central dashboard)&amp;nbsp;
	&lt;UL&gt;&lt;LI&gt;To use Postman on Shared Services with the Identity Authentication script (detailed below):
		&lt;UL&gt;&lt;LI&gt;Identity bearer token becomes {{pasSessionToken}} variable:&lt;/LI&gt;&lt;LI&gt;Copy $header.Authorization returned from IdentityAuth.psm1&lt;/LI&gt;&lt;LI&gt;Copy all the text, starting with “Bearer xyz123…”, to the Postman {{pasSessionToken}} variable.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Idira GitHub repositories (ready-to-go PowerShell scripts for common actions)
	&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/cyberark/epv-api-scripts" target="_blank"&gt;https://github.com/cyberark/epv-api-scripts&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Identity authentication script (Required for Shared Services)
		&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/cyberark/epv-api-scripts/tree/main/Identity Authentication" target="_blank"&gt;https://github.com/cyberark/epv-api-scripts/tree/main/Identity%20Authentication&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;This script authenticates a user to Idira Identity on the Shared Services platform and returns an authorization bearer token that can be used in other services (like Privilege Cloud)&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;H1&gt;Instruction examples for Authentication, Safe Management, Account Onboarding, and Platform Management&lt;/H1&gt;
&lt;H3&gt;Identity Authentication&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;Download the Identity Authentication script, place it in the same folder as any other Idira scripts, and run the following PowerShell commands to generate and store the authentication token:&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
Import-Module .\IdentityAuth.psm1
$header = Get-IdentityHeader&lt;/PRE&gt;
&lt;UL&gt;&lt;LI&gt;You will then be prompted for tenant URL and username&lt;/LI&gt;&lt;LI&gt;To provide tenant ID and username in the command:&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
$header = Get-IdentityHeader -IdentityTenantURL abc1234.id.cyberark.cloud -IdentityUserName apiuser@cyberark.cloud.1234&lt;/PRE&gt;
&lt;UL&gt;&lt;LI&gt;Identity URL can be found in Identity Administration &amp;gt; Settings &amp;gt; Customization &amp;gt; Tenant URLs
	&lt;UL&gt;&lt;LI&gt;May be ‘xyz1234.my.idaptive.app’&lt;/LI&gt;&lt;LI&gt;May be ‘xyz1234.id.cyberark.cloud’&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Note: you can type ‘$header’ into PowerShell to view and verify your token is being stored properly&lt;/LI&gt;&lt;LI&gt;$header.Authorization will display the full token
	&lt;UL&gt;&lt;LI&gt;Starts with the word &lt;U&gt;&lt;STRONG&gt;‘bearer’ – this is part of the token!&lt;/STRONG&gt;&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;This is the exact token you need to provide in Privilege Cloud API calls in the ‘Authorization’ header.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;H3&gt;Safe management&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;Add ‘memberType’ to the example .csv for Shared Services imports
	&lt;UL&gt;&lt;LI&gt;Options for ‘memberType’ are ‘User’, ‘Group’ or ‘Role’&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;How to pass the Identity authentication token to the script:&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
Import-Module .\IdentityAuth.psm1
$header = Get-IdentityHeader -IdentityTenantURL abc1234.id.cyberark.cloud -IdentityUserName apiuser@cyberark.cloud.1234
&amp;amp; .\Safe-Management.ps1 -PVWAURL https://subdomain.privilegecloud.cyberark.cloud/PasswordVault -Add -FilePath "C:\Temp\safes-sample.csv" -LogonToken $header&lt;/PRE&gt;
&lt;H3&gt;Account Onboarding Utility&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;Accepts -LogonToken as expected&lt;/LI&gt;&lt;LI&gt;How to pass the Identity authentication token to the script:&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
Import-Module .\IdentityAuth.psm1
$token = Get-IdentityHeader -IdentityTenantURL abc1234.id.cyberark.cloud -IdentityUserName apiuser@cyberark.cloud.1234
.\Accounts_Onboard_Utility.ps1 -PVWAURL https://subdomain.privilegecloud.cyberark.cloud/PasswordVault -CsvPath .\account-onboarding.csv -Create -BypassAccountSearch -LogonToken $token&lt;/PRE&gt;
&lt;H3&gt;Platform management&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;How to pass the Identity authentication token to the script:&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock" style="margin-left: 40px;"&gt;
Import-Module .\IdentityAuth.psm1
$header = Get-IdentityHeader -IdentityTenantURL abc1234.id.cyberark.cloud -IdentityUserName apiuser@cyberark.cloud.1234
&amp;amp; .\Export-Import-Platform.ps1 -ImportFile -PVWAURL https://subdomain.privilegecloud.cyberark.cloud/PasswordVault -ListFile &amp;lt;The path to the txt file with the ZIP files to import&amp;gt; -logonToken $header&lt;/PRE&gt;
&amp;nbsp;

&lt;H3&gt;Informational API Procedures on Shared Services&lt;/H3&gt;
&lt;UL&gt;&lt;LI&gt;APIs for use with Privilege Cloud are based in Idira Identity and non-interactive by design (they can authorize API calls, but not log into the Identity UI)
	&lt;UL&gt;&lt;LI&gt;Idira recommends creating a dedicated API service user for non-interactive API.
		&lt;UL&gt;&lt;LI&gt;This service user would then be managed using Idira AAM (a Credential Provider or Central Credential Provider&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Interactive API (using a standard user account) should follow Identity documentation.
		&lt;UL&gt;&lt;LI&gt;May also be able to leverage Identity Authentication GitHub script&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;How to create a Service user for API requests
	&lt;UL&gt;&lt;LI&gt;Public documentation: &lt;A href="https://docs.cyberark.com/Product-Doc/OnlineHelp/PrivCloud-SS/Latest/en/Content/ISPSS/ISPSS-API-Authentication.htm" target="_blank"&gt;API Authentication on Identity Security Platform&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Identity Admin portal &amp;gt; Users &amp;gt; Add User
		&lt;UL&gt;&lt;LI&gt;Enter login name, display name and password. Email address not required.&lt;/LI&gt;&lt;LI&gt;Status box should have three items checked:
			&lt;UL&gt;&lt;LI&gt;Password never expires&lt;/LI&gt;&lt;LI&gt;Is Service User&lt;/LI&gt;&lt;LI&gt;Is OAuth confidential client&lt;/LI&gt;&lt;LI&gt;Click ‘Create User’&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;Add the API user to the required Privilege Cloud Roles in Identity
		&lt;UL&gt;&lt;LI&gt;Identity Admin Portal &amp;gt; Roles
			&lt;UL&gt;&lt;LI&gt;For example, ‘Privilege Cloud Admins’ role is required to add users, while ‘Privilege Cloud Auditors’ role may be required to pull a complete list of Safes.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;How to report on API usage in Shared Services Privilege Cloud (Identity)
	&lt;UL&gt;&lt;LI&gt;Identity Administration &amp;gt; Core Services &amp;gt; Reports &amp;gt; click ‘OAuth Events report’ &amp;gt; Set report filters (time range) &amp;gt; OK
		&lt;UL&gt;&lt;LI&gt;Report is displayed &amp;gt; AppId ‘_widgetOAuthApp’ corresponds to Shared Services API tokens&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 05 Nov 2026 20:00:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-saas-articles/privilege-cloud-shared-services-automate-with-rest-api/ta-p/1428557</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-11-05T20:00:31Z</dc:date>
    </item>
  </channel>
</rss>

