<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007mQG7ICAWOkta Classic EngineSingle Sign-OnAnswered2024-04-16T12:55:15.000Z2022-07-05T16:51:17.000Z2022-07-07T23:28:46.000Z

ii126 (ii126) asked a question.

What is the right saml assertion for the Salesforce Role from Okta JIT

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.


  • ii126 (ii126)

    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.

    Selected as Best
This question is closed.
Loading
What is the right saml assertion for the Salesforce Role from Okta JIT