<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
0D54z00008Bx3LdCAJOkta Classic EngineSingle Sign-OnAnswered2025-12-27T09:02:23.000Z2022-10-10T07:04:48.000Z2023-07-06T19:22:31.000Z

d9gyy (d9gyy) asked a question.

Keep getting Unknow Profile Attribute after following the tutorial

Hello,

I am stuck for many days on what I think is a very common case: I want to use Azure AD as an SAML IdP, and Okta SP, to access an application.

I followed the documentation and checks many times all my settings. I keep having the error Unknown Profile Attribute in the Okta System Logs.

 

I created an Enteprise Application in my Azure AD subscription, and configured SAML claims.

 

Image is not available

 

Then I created an external Identity Provider and provisoned those variables, with the corresponding external names, and adjusted the mapping.

 

Image is not available

I defined the following custom variables :

 

 

Image is not available

Variable details : (I adjusted the external names the same way for all variables)

 

Image is not available

Here is the mapping :

 

Image is not available

 

I configured the endpoints, audiences, certificate correctly.

 

I use the "Test SSO button" on Azure AD :

 

Image is not available

 

I am redirected toward Okta, then toward Azure when I log in, then back to Okta with the following error:

 

Image is not available

When I check the system logs, I get this :

 

Image is not available

 

But when I debug the SAML Claims in my browser developer tools, I can see that all mapped custom variables are there :

 

Image is not available

 

What am I missing?

 

Thanks !


  • Paul S. (Okta, Inc.)

    Hello @d9gyy (d9gyy)​ Thank you for reacting out to our Community!

     

    The problem here might be the Username mapping and IDP username in the IDP setup. Could you try using idpuser.subjectNameId in the IdP setup and appuser.subjectNameId in the mappings setup, and see if there is any difference?

    Also you might want to expand the System Log to see what attribute is not accepted.

    Also make sure you have setup a Routing Rule for the IDP, for this please see this:

    https://help.okta.com/en-us/Content/Topics/Security/Identity_Provider_Discovery.htm

     

    The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.

    Expand Post
  • d9gyy (d9gyy)

    Hello,

     

    I forgot to mention that I already created a rule, as follow:

     

    Image is not available
    The rule should apply for all users coming from the Azure AD domain.

     

    I changed the IdP configuration and mapping as you suggested, as followed (I include screen captures for you to validate if it is valid) :

     

    Image is not available
    I keep having the same error when I test. I already expanded the logs before, I don't find the exact attribute which does not match.

     

    There is something strange in the following expanded log though:

     

    Image is not available
    I don't see listed above the claims, I don't see the claims mapped to my variables, while they are present in my SAML debugger.

    Also, the ID of the app user seems unknown, but I don't know if it is normal at that stage:

     

    Image is not available
     

    => I am still stuck! Can you help me?

     

    Thanks,

    Joel

    Expand Post
  • d9gyy (d9gyy)

    Image is not available
    So I did another test following my last answer and given the logs. I map on the variables only the subject id (for firstname, lastname, email, login) and it works : it seems that all the claims I see in the my SAML debugger are not received or managed by Okta :

    Image is not available
     

    I still need to understand why not all the claims are received or processed by Okta.

     

     

    Expand Post
  • Paul S. (Okta, Inc.)

    Hello @d9gyy (d9gyy)​  In this case you need to make sure that the user's e-mail are with onmicrosoft.com domain, because if not then that could be the issue.

    • d9gyy (d9gyy)

      Hello,

       

      I did some tests and I still got the same errors:

      • I updated the email address (of course)
      • I used the subject name id as the email address
      • I changed the routing rule to allow any body.

       

      I still get the same 400 and Unknow Profile Attribute. But I DONT HAVE IT when on Okta, I mapped the subject name Id to all the appuser attributes (firstname, lastname, email, login).

      Does it give you a hint?

      Where in the system log I can pinpoint the exact debug message which would lead me to understanding what is going on?

       

      Regards,

      Joel Bloch

       

      Expand Post
  • d9gyy (d9gyy)

    Hello, I am still stuck with this problem, how can you help?

     

    Regards,

    Joel Bloch

  • AnsonF.10462 (Customer)

    I too am running into the same problem. Any resolution on this?

     

    Thanks, Anson

  • 6ob93 (6ob93)

    First find out if adding the user in okta will still give this error. If not than the mapping (which is used for JIT) was the problem for me . The email field is the culprit! Change the mapping:

     appuser.SubjectNameId -> login and appuser.SubjectNameId -> email

    Image is not available

    Expand Post
    • ynn8t (ynn8t)

      Hi @6ob93 (6ob93)​. I have the same configuration but I am still getting an error.

10 of 11
This question is closed.
Loading
Keep getting Unknow Profile Attribute after following the tutorial