BookmarkSubscribeRSS Feed
Ullsokk
Pyrite | Level 9

Where can I find an overview of all registered applications\clients from the VIYA REST API?

 

I have registered at least one client, and possibly some duplicates. But I cannot find any overview of registered clients in either SAS VIYA Environment manager or in the API documentation. Where are the clients stored?

5 REPLIES 5
joeFurbee
Community Manager

Hi @Ullsokk,

Here is the REST call that returns all registered clients/applications:

curl -X GET https://mysasserver.sas.com/SASLogon/oauth/clients

 

If you'd like to get a specific client, add the clientid to the call:

curl -X GET https://mysasserver.sas.com/SASLogon/oauth/clients/sas.myapp

And finally, if you'd like to delete a client use the delete method:

curl -X DELETE https://mysasserver.sas.com/SASLogon/oauth/clients/sas.myapp

 

Here is a blog post I wrote on authentication with Viya for more details:

https://blogs.sas.com/content/sgf/2019/01/25/authentication-to-sas-viya/ 

 

Thanks,

Joe

 


Join us for SAS Community Trivia
SAS Bowl XLIII, The New SAS Developer Portal
Wednesday, August 14, 2024, at 10 a.m. ET | #SASBowl

Ullsokk
Pyrite | Level 9

Thanks! Very familiar with the article, I have been using it a lot. 

Is this particular API documented somewhere? I can't find any official documentation regarding this particular GET request. A link would be much appreciated if you have one

Ullsokk
Pyrite | Level 9

Tried getting a list of all applications, but got an error message;

"error":"insufficient_scope","error_description":"Insufficient scope for this resource","scope":"uaa.admin clients.read clients.adm
in sasapp zones.uaa.admin

 

Do I need to register a new client\app with an admin scope, to retrieve the list of registered applications?

joeFurbee
Community Manager

Hi @Ullsokk,

I apologize that I did not see the follow up question/issue you posed on this thread. 

 

Try registering the client by adding the "clients.read" scope. I'm checking for certain, but the "openid" scope may be lacking rights to view registered clients list.

 

As an FYI, there are other scopes: clients.write, clients.admin, and clients.secrect, which I'm assuming adds additional rights.

 

Thanks,

Joe


Join us for SAS Community Trivia
SAS Bowl XLIII, The New SAS Developer Portal
Wednesday, August 14, 2024, at 10 a.m. ET | #SASBowl

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2773 views
  • 1 like
  • 3 in conversation