pooja1
1
How to get list of applications assigned to users through APIs in service now
I have used below things in my REST Message
curl -v -X GET
-H “Accept: application/json”
-H “Content-Type: application/json”
-H “Authorization: SSWS ${api_token}”
https://my.okta.com/api/v1/apps?filter=user.id+eq+“00ucw2RPGIUNTDQOYPOF”&expand=user/00ucw2RPGIUNTDQOYPOF
But it is showing "Error executing REST request: Invalid uri " with status code 0
Can anybody help?
dragos
2
Hi @pooja1
Here is a cURL example that I just tested on my end to achieve the use-case
curl -X GET \
'https://org.okta.com/api/v1/apps?filter=user.id+eq+%2200uozbgc03wzqoaXp2p6%22&expand=user/00uozbgc03wzqoaXp2p6' \
-H 'Accept: application/json' \
-H 'Authorization: SSWS API_TOKEN_HERE' \
-H 'Content-Type: application/json'
1 Like
pooja1
3
Hi Dragos,
Thank you very much for your help!. It is working for me now. If I have any queries i will post it again.
Again thank you!
system
Closed
4
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.