SuccessFactors to AD User Provisioning : UPN (UserPrincipleName)

Sai Prathap 20 Reputation points
2024-09-20T07:52:17.79+00:00

This is related to SuccessFactors to AD User Provisioning

This there an expression for SelectUniqueValue() function which can enable creation on UPN with [email protected] , [email protected], [email protected] ?

Please help with the expression if anyone knows..

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,515 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,648 questions
0 comments No comments
{count} votes

Accepted answer
  1. Akhilesh 9,510 Reputation points Microsoft Vendor
    2024-09-24T20:25:23.5733333+00:00

    Hi @Sai Prathap

    Thank you for reaching Microsoft Q&A Forum!

    I understand that you would like to know the expression for SelectUniqueValue() function which can enable creation on UPN.

    You can use the SelectUniqueValue function to generate unique values for the userPrincipalName (UPN) attribute. Here is an example expression that generates UPN values in the format of [[email protected]], [[email protected]], [[email protected]]:

    SelectUniqueValue(
     Join("@", NormalizeDiacritics(StripSpaces(Join(".", [PreferredFirstName], [PreferredLastName]))), "contoso.com"),
     Join("@", NormalizeDiacritics(StripSpaces(Join(".", [PreferredFirstName], [PreferredLastName], "1"))), "contoso.com"),
     Join("@", NormalizeDiacritics(StripSpaces(Join(".", [PreferredFirstName], [PreferredLastName], "2"))), "contoso.com")
     )
    

    This expression generates three unique UPN values for each user, with the format of [[email protected]], [[email protected]], [[email protected]]. If the first value already exists in the target directory, it will try the second value, and so on until it finds a unique value.

    Reference: Generate unique value for userPrincipalName (UPN) attribute

    Hope this helps. Do let us know if you any further queries by responding in the comments section.

    Thanks,

    Akhilesh.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.