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.
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.