Skip to main content

Rest API to fetch the Users from NetSkope

  • July 8, 2022
  • 4 replies
  • 195 views

Forum|alt.badge.img

Hey there,
I want to fetch the users associated with NetSkope using Rest APIs. Is there any Rest API to fetch the list of all the users associated with NetSkope in v1 or v2 ? I am referring to below attached document, but I couldn't find any Rest API to fetch the users in the document: https://docs.netskope.com/en/netskope-platform-rest-apis.html.

Thanks,
Ritesh

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+8
  • New Member
  • 23 replies
  • July 11, 2022

Hi, @ritesh_pawar. Thank you for reaching outA Netskope expert from our community team will get back to you as soon as possible. In the meantime, if any community member knows the solution, please reply to this thread!


Forum|alt.badge.img
  • New Member
  • 1 reply
  • July 20, 2022

this will return all usernames:

curl "https://xxxxxxx.goskope.com/api/v1/clients?token=xxxxxxxxxx" | jq '.data[] | .attributes.users[].username'

you could use sed to remove duplicates afterwards


Forum|alt.badge.img
  • Author
  • New Member
  • 2 replies
  • July 21, 2022

Thank you for your help. 
I just want to know wether this API you mentioned above able to fetch all the Netskope users or only the users who have installed client on their machine.


Forum|alt.badge.img
  • Author
  • New Member
  • 2 replies
  • July 21, 2022

Can we able to fetch the all ScopeIT users using the following API:

curl "https://xxxxxxx.goskope.com/api/v1/clients?token=xxxxxxxxxx" | jq '.data[] | .attributes.users[].username'