Forum Discussion
Sync Roles update fields in Azure AD
Hi Stefan can you describe the exact steps you have taken so far to push this attribute to Azure AD? Be as specific as possible
- StefanKiMay 30, 2018Iron Contributor
Hi,
here is description of the rule
New-ADSyncRule `
-Name 'usage location' `
-Identifier '' `
-Description '' `
-Direction 'Inbound' `
-Precedence 100 `
-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `
-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `
-SourceObjectType 'user' `
-TargetObjectType 'person' `
-Connector '' `
-LinkType 'Join' `
-SoftDeleteExpiryInterval 0 `
-ImmutableTag '' `
-OutVariable syncRule
Add-ADSyncAttributeFlowMapping `
-SynchronizationRule $syncRule[0] `
-Source @('c') `
-Destination 'usageLocation' `
-FlowType 'Expression' `
-ValueMergeType 'Update' `
-Expression 'IIF(IsNullOrEmpty([c],"DE",[c])' `
-OutVariable syncRule- Mitch KingMay 30, 2018Iron Contributor
All looks good to me, except TO Azure AD should be "outbound" not inbound right?
I must admit I have not created a rule with PS yet but I don't see how you have a source AND an expression, in the GUI the source IS the expression
i.e. displayname transformation source is below but you specify a source as 'c' as well as an expression, wondering how this looks in the source field for your rule?
IIF(IsNullOrEmpty([displayName]),[cn],[displayName])