Use API created user property for login Skip to main content
https://support.okta.com/help/answers?id=906f0000000dfkhiao&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Pranjal ShahPranjal Shah 

Use API created user property for login

I am creating an OKTA user using the API as below - 
{
  "profile": {
    "firstName": "Isaac",
    "lastName": "Brock",
    "email": "100012@{{email-suffix}}",
    "login": "100012@{{email-suffix}}",
    "employeeNumber": "100012"
  },
  "credentials": {
    "password" : { "value": "Password1" },
    "recovery_question": {
      "question": "Who's a major player in the cowboy scene?",
      "answer": "Cowboy Dan"
    }
  },
  "groupIds": [
    "00g7yeaeghebsiTEHU850x7"
  ]
}

Now, I want to use employeeNumber above as the login to a custome SAML app - 

User-added image

If I choose AD EmployeeID, its not working even though there is a mapping between OKTA and AD for employee number. I am not getting any value for custom expression ${user.employeeNumber} 

Please help in figuring out what to use for the application login for employee number.

Thanks,
-Pranjal
Gabriel SrokaGabriel Sroka (Okta, Inc.)
Hi Pranjal
For an app called AppX, Try: Directory > Profile Editor, AppX, Mappings, Okta to AppX, set the userName to user.employeeNumber.
See https://support.okta.com/help/articles/Knowledge_Article/About-Universal-Directory