Get Application attributes of user via .Net SDK / API

I have a .NET application that has custom attributes assigned and then set on a per user basis. How can I use the Okta API or .NET Okta SDK to retrieve the user along with these custom attribute values?

I can retrieve the user using the API and it has an “Profile.AdditionalProperties” but this only contains the profile level custom properties, not the Application properties.

Bonus points if you can tell me how to get the group custom attributes as well!

application-user-profile
can you look into this

Thanks, we are already setting the values and we also know we can retrieve them using the expression language because we can serve them up as claims in the tokens.

How do I retrieve them using the Okta SDK or Okta APIs?

I was able to find the information. It seems like there is a specific API for “ApplicationUsers”. Using that API I can retrieve the app specific properties:

var appUserApi = new ApplicationUsersApi(configuration);
var appUser = await appUserApi.GetApplicationUserAsync(appId: AppId, userId: UserId);
//appUser.Profile will then have the custom app property information.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.