
ii126 (ii126) asked a question.
I have setup Okta and Salesforce JIT. And, I am wanting to pass the Role assertion with the right role but does not seem to work. I have tried user.Role "Sales", User.RoleId "Sales", User.RoleID "Sales" and I get the following error: "We can't log you in because of an issue with single sign-on. Contact your Salesforce admin for help." Although, User.CompanyName "Test" works but the Role does not. Thanks for your help.

This was the right attribute for the Salesforce role within Okta. User.UserRoleId. And this is the query you need to execute in Salesforce "Select u.Alias, u.Name, u.CompanyName, u.UserRoleId, u.UserRole.Id, u.UserRole.Name from User u WHERE u.Alias LIKE 'alias'" in order to get the different values.