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 XL, SAS Innovate 2024 Recap
Wednesday, May 15, 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 XL, SAS Innovate 2024 Recap
Wednesday, May 15, 2024, at 10 a.m. ET | #SASBowl

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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