I want to create a user with Country.Below is the code.
I do not see a member for country in the UserProfile class. Link for available methods
https://developer.okta.com/okta-sdk-java/apidocs/index.html?com/okta/sdk/resource/user/UserProfile.html
// Create a user with the specified password
var vader = await client.Users.CreateUserAsync(new CreateUserWithPasswordOptions
{
// User profile object
Profile = new UserProfile
{
FirstName = “Test1”,
LastName = “Okta”,
Email = "test1.okta@abc.com",
Login = "test1.okta@abc.com",
Country = “United States”, //error - ‘UserProfile’ does not contain method definition for country
SecondEmail ="test2.okta@abc.com",
MobilePhone = “1234567890”
},
Password = “aasdhaweq”,
Activate = false,
});
Can someone advise?