Help with AADConnect Expressions

ShaunWI 96 Reputation points
2020-11-04T23:47:54.5+00:00

In our hybrid Dev environment, we have followed these instructions to add a custom attribute to on-prem AD signifying Guest/Member, and have that syncing into AADConnect & out to Azure as UserType. This works for provisioning on-prem users as Guests in Azure, but it gives them <On-Prem UPN Prefix>@<tenant name> UPNs. We would like the Guest UPNs to be provisioned like "invited" Guests are - with the Guest user's email address in the prefix (with @ replaced with _), followed by #EXT#@<tenant name>. Does anyone know how to do this? I assume we need to write some very long IIF statement. I'd also like to convert the custom AADConnect output rule from "Direct" to "Expression" where it will write the value from the custom attribute if it is populated, otherwise write "Member". Can anyone help with the need custom expression language? Thanks. https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sync-change-the-configuration#enable-synchronization-of-usertype

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,796 questions
{count} votes

Accepted answer
  1. ShaunWI 96 Reputation points
    2020-11-12T21:36:34.657+00:00

    I was told that creating Guest users via AADConnect synchronization would not result in usable Guest accounts, because Azure would not know where the auth authority for the Guest account would reside. I have moved onto implementing a method for exclusion of individual objects from AADConnect sync, via custom attribute & custom AADConnect sync rule to set cloudFiltered to True.

    0 comments No comments

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.