cyberark / epv-api-scripts

These API scripts enable CyberArk users to automate privileged account management task like account creation, user management, and more.
https://www.cyberark.com/best
Apache License 2.0
201 stars 176 forks source link

Get Safe members unable to filter by includePredefinedUsers eq false #177

Closed engkeen-source closed 3 years ago

engkeen-source commented 3 years ago

I trigger web api request, return is 200 ok, but the result include predefined user such as master, dr etc. As refer by CyberArk Doc. https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/SDK/Safe%20Members%20WS%20-%20List%20Safe%20Members.htm?tocpath=Developer%7CREST%20APIs%7CSafes%7CSafe%20members%7C_____1

http://xxxxxx.com.sg/PasswordVault/api/Safes/TESTSAFE2222/Members/?filter=includePredefinedUsers eq false

I tried several URL below, all result returned include predefined user. http://xxxxxx.com.sg/PasswordVault/api/Safes/TESTSAFE2222/Members/?filter=includePredefinedUserseqfalse http://xxxxxx.com.sg/PasswordVault/api/Safes/TESTSAFE2222/Members/?filter=includePredefinedUsers=false http://xxxxxx.com.sg/PasswordVault/api/Safes/TESTSAFE2222/Members/?filter=includePredefinedUsers

Is the URL correct?

AssafMiron commented 3 years ago

The default for includePredefinedUsers is false, so maybe you should not include it The URL has a redundant '/' after the Members This should work: http:///PasswordVault/api/Safes/{SafeUrlId}/Members?filter=includePredefinedUsers eq false

Let me know if it works for you

Regards, Assaf

On Wed, Mar 10, 2021 at 2:31 PM engkeen-source @.***> wrote:

I trigger web api request, return is 200 ok, but the result include predefined user such as master, dr etc. http:///PasswordVault/api/Safes/{SafeUrlId}/Members/?filter=includePredefinedUsers eq false

Is the URL correct?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cyberark/epv-api-scripts/issues/177, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3PN3PFUL7REK7HEYADL7LTC5RCZANCNFSM4Y55FVGA .

engkeen-source commented 3 years ago

image

Its still return predefined user for the correct URL I input

AssafMiron commented 3 years ago

And if you are not using this parameter? This should default to the same thing

In anyway I would recommend opening a support case with CyberArk asking them about this behavior

On Thu, Mar 11, 2021, 02:31 engkeen-source @.***> wrote:

[image: image] https://user-images.githubusercontent.com/71132168/110717446-0ba9da80-8244-11eb-94dc-d7b8222a4b99.jpeg[image: image] https://user-images.githubusercontent.com/71132168/110717447-0c427100-8244-11eb-8137-444df4ee11d0.jpeg

Its still return predefined user for the correct URL I input

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cyberark/epv-api-scripts/issues/177#issuecomment-796321752, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3PN3JSDB5QIAM37EA43MDTDAFO3ANCNFSM4Y55FVGA .