How to check if User has access to a given App with .NET SDK? Skip to main content
https://support.okta.com/help/answers?id=9062a000000bmpjqay&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Chin BaeChin Bae 

How to check if User has access to a given App with .NET SDK?

I've been looking at the AppUsersClient class, but there doesn't seem to be a way to check if there exists an AppUser for a given username/login.

AppUsersClient has a Get(AppUser appuser) method, but how are you supposed to get an instance of AppUser to pass it to this method if the point of calling Get() is to find out if the User in question has access to a given App instance?

I also tried calling AppUsersClient.GetList().Results.Where() with a Lambda expression, but there isn't an obvious property of AppUser to filter by. The most appropriate property seems to be AppUser.Profile.Login, but all properties of the Profile object are null.
Jerrell GaryJerrell Gary (Okta, Inc.)
Hello Chin,

Here are the core Guides for SDK from Okta.

http://developer.okta.com/docs/sdk/core/api.html

Check the Okta API docs at http://developer.okta.com/docs/api/resources/users.html#user-modelfor the user model. You will get a collection of those JSON objects when you list the users - http://developer.okta.com/docs/api/resources/users.html#list-users.

If you need additional assistance please open a case with Okta support.