Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

CyberArk Account filter URL

jezzanuena
Regular Contributor II
Regular Contributor II

Hi Everyone! Im trying to filter accounts based on its name. In postman, this URL works:

Https://cyberark123/PasswordVault/api/Accounts?filter=safename eq P-US-*⁠

However, I am not sure how to put in connection under import JSON. It has some spaces and a wildcard to get the response. Please help.

7 REPLIES 7

NM
Esteemed Contributor
Esteemed Contributor

@jezzanuena instead of space add %20 and for wildcard .. use blackslash to escape it.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

rushikeshvartak
All-Star
All-Star

Please share JSON

Https://cyberark123/PasswordVault/api/Accounts?filter=safename%20eq%20P-US-%2A%E2%81%A0


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Thank you, @rushikeshvartak I used filter=safename%20eq%20P-US-%2A%E2%81%A0 , however all accounts has been marked as suspended even though I am getting results in Postman. I can import all the accounts with the filter but the requirement is to get specific safe names only.

Here's my actual URL: /PasswordVault/api/Accounts?offset=0&limit=1000&filter=safename%20eq%20P-US-%2A%E2%81%A0⁠

Hi @NM like this?  Https://cyberark123/PasswordVault/api/Accounts?filter=safename%20eq%20P-US-\ I am getting error saving the connection with this one. 😞

stalluri
Valued Contributor II
Valued Contributor II

@jezzanuena 

Make sure you have the status config present in the import and mapped in the 
Account import Config

"statusConfig": {
          "active": "true",
          "inactive": "false"
        },

STATUS_THRESHOLD_CONFIG: Status Config 

{
                "statusAndThresholdConfig": {
                "accountThresholdValue": 100,
                "inactivateAccountsNotInFile": true,
                "statusColumn": "customproperty30",
                "activeStatus": [
                "true",
                "1"
                ],
                "inactivateEntsNotInFeed": true,
                "entThresholdValue": {
                "entType": {
                "Group": {
                "ent": 100
                },
                "Role": {
                "ent": 100
                }
                }
                }
                }
        }

 


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

Please share logs in text format


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

jezzanuena
Regular Contributor II
Regular Contributor II

hi @rushikeshvartak and @stalluri, I can't find the logs of import:

2024-09-11T16:07:35+08:00-ecm-domain.FlatViewJobcontrolController-http-nio-8080-exec-12-cdlz8-DEBUG-Inside fireJobAction params = [triggername:CyberArkSafesAcctImp, triggergroup:GRAILS_JOBS, jobname:ApplicationDataImportJob, jobgroup:DATA, actn:6, job_name:, job_group:, controller:flatViewJobcontrol, action:fireJobAction]

2024-09-11T16:07:26+08:00-ecm-certificatemgmt.CertificateManagementService-http-nio-8080-exec-5-cdlz8-DEBUG-sslCert = CyberArk UAT

2024-09-11T16:07:26+08:00-ecm-integration.ExternalConnectionCallService-http-nio-8080-exec-12-cdlz8-DEBUG-in testExternalConnection for External Connection : CyberArk Safe US

Here is the accountparams that I am using. statusAndThresholdConfig is also in the STATUS_THRESHOLD_CONFIG,  still not working. 

Spoiler
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"accountThresholdValue": 50000,
"deleteLinks": true,
"statusColumn": "customproperty7",
"activeStatus": [
"true"
],
"inactivateAccountsNotInFile": false,
"correlateInactiveAccounts": true

},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://uat-cyberark.abc.com/PasswordVault/api/Accounts?offset=0&limit=1000&filter=safename%20eq%20P...",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "value",
"keyField": "accountID",
"statusConfig": {
"active": "true",
"inactive": "false"
},
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "userName~#~char",
"displayName": "name~#~char",
"status": "secretManagement.automaticManagementEnabled~#~char",
"customproperty1": "userName~#~char",
"customproperty2": "platformId~#~char",
"customproperty3": "address~#~char",
"customproperty4": "secretType~#~char",
"customproperty5": "platformAccountProperties.ApplicationID~#~char",
"customproperty6": "platformAccountProperties.ActiveDirectoryID~#~char",
"customproperty7": "secretManagement.automaticManagementEnabled~#~char",
"customproperty9": "secretManagement.lastModifiedTime~#~char",
"customproperty10": "createdTime~#~char",
"customproperty11": "name~#~char",
"customproperty12": "safeName~#~char",
"customproperty13": "id~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.nextLink == null) ? null : 'https://uat-cyberark.abc.com/PasswordVault/' + response?.completeResponseMap?.nextLink}"
}
}
}
},
"acctEntMappings": {
"Safes": {
"listPath": "safeName",
"idPath": "",
"keyField": "entitlementID"
}
}
}

 

 

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.