SOLVED
Home

ImmutableID to Extensionattribute

%3CLINGO-SUB%20id%3D%22lingo-sub-292194%22%20slang%3D%22en-US%22%3EImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-292194%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20smart%20people!%3C%2FP%3E%3CP%3EWe%20are%20considering%20using%20Azure%20AD%26nbsp%3BImmutableID%20as%20our%20global%20ImmutableID%20for%20other%20projects.%20Is%20it%20possible%20to%20use%20ADConnect%20to%26nbsp%3Bwrite%20the%20Azure%26nbsp%3BImmutableID%20back%20to%20an%20extensionattribute%20in%20local%20AD%3F%20I%20understand%20there%20are%20scripts%20to%20generate%20Immutable%20from%20GUID.%20Not%20those.%3C%2FP%3E%3CP%3ETo%20add%20to%20that%2C%20cloud%20only%20accounts%20have%20nothing%20in%20the%20ImmutableID%20field.%20Is%20it%20OK%20to%20then%20somehow%26nbsp%3Bgenerate%20the%20attribute%26nbsp%3Bfrom%20Azure%20ObjectID%3F%20Or%20we%20may%20get%20a%20conflict%20eventually%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-292194%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-302034%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-302034%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20stuff%2C%20good%20luck%20and%20please%20reach%20out%20to%20the%20community%20if%20there's%20anything%20we%20can%20help%20with%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-300897%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-300897%22%20slang%3D%22en-US%22%3ENo%20problem.%20I%20did%20get%20a%20response%20from%20a%20program%20manager%20at%20Microsoft%20that%20I%20had%20met%20at%20Ignite.%20He%20indicated%20to%20read%20this%20article%3A%20%3CA%20href%3D%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FUniversally_unique_identifier%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FUniversally_unique_identifier%3C%2FA%3E%3CBR%20%2F%3EApparently%20the%20possibility%20for%20collision%20is%20so%20low%20it's%20likely%20not%20an%20issue%3F.%3CBR%20%2F%3EIt's%20not%20specifically%20that%20we%20are%20looking%20to%20compare%20but%20to%20have%20a%20good%20way%20to%20generate%20an%20immutable%20ID%20for%20claims%2C%20reporting%2C%20etc%2C%20as%20you%20indicated.%20It%20would%20be%20a%20standard%20here%20for%20the%20lifecycle%20of%20a%20user%20across%20many%20apps%20and%20are%20concerned%20if%20there%20is%20someday%20an%20acquisition%20or%20need%20to%20use%20the%20ObjectID%20from%20another%20Azure%20AD%20in%20the%20same%20capacity.%20We%20didn't%20want%20to%20stand%20up%20another%20app%20to%20generate%20them%20if%20there%20is%20already%20something.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-299689%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-299689%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Charles%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApologises%20for%20the%20late%20response%2C%20work%20has%20been%20hectic.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EObjectID%20is%20%3CSTRONG%3Eonly%3C%2FSTRONG%3E%20guaranteed%20unique%20within%20a%20specific%20tenant.%20If%20you%20need%20to%20compare%20objects%20across%20multiple%20tenants%2C%20I%E2%80%99d%20recommend%20cross%20referencing%20with%20another%20attribute.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EProxyAddresses%20is%20probably%20the%20best%20attribute%20to%20use%20as%20UPN%20will%20usually%20be%20updated%20to%20reflect%20name%20changes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EPowerShell%20example%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%24UserOID%20%3D%20%2284214-20sb-42e-a2c7-a24520a77228%22%3C%2FP%3E%3CP%3E%24UserSMTP%20%3D%20%22ThinkSync%40company.com%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-MsolUser%20-All%20%7C%20Where%20%7B%24_.ObjectId%20-match%20%24UserOID%20-AND%20%24_.ProxyAddresses%20-match%20%24UserSMTP%7D%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-297022%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-297022%22%20slang%3D%22en-US%22%3E%3CP%3EOK%20so%20if%20I%20should%20start%20a%20new%20thread%20let%20me%20know%20but%20this%20is%20starting%20to%20take%20shape%20here%2C%20thanks%20very%20much!%3C%2FP%3E%3CP%3EPrompting%20another%20question%20in%20the%20same%20line.%20Are%20Azure%20ObjectID's%20truly%20globally%20unique%3F%20Meaning%20across%20%3CEM%3Eany%3C%2FEM%3E%20Azure%20AD%3F%20Or%20is%20there%20some%20chance%20that%20there%20is%2C%20like%20life%20on%20another%20planet%2C%20a%20possibility%20for%26nbsp%3Bduplication%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-296739%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-296739%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20replies.%20This%26nbsp%3Bis%20a%26nbsp%3Bgreat%20dialogue.%20As%20I%20understand%20it%2C%20since%20we%20started%20this%20(years%20ago%20before%20me)%20without%20mS-DS-ConsistencyGuid%20it's%20too%20late%20to%20change%20it.%20It%20would%20certainly%20fit%20the%20bill%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248778%22%20target%3D%22_blank%22%3E%40ThinkSync%3C%2FA%3E%26nbsp%3B%20Your%20assessment%20is%20correct%2C%20we%20are%20working%20toward%20a%20better%20lifecycle%20and%20looking%20to%20link%20the%20user%20between%20apps%20and%20not%20have%20to%20visit%20this%20again%20for%20a%20long%20time!%20ObjectID%20sounds%20like%20a%20plan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294170%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294170%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20issues%20using%20this%20solution%2C%20but%20it%20does%20add%20complexity%20which%20I%20agree%20needs%20to%20be%20documented%20and%20taken%20into%20consideration%20moving%20forward.%20As%20I%20say%20to%20my%20customers%2C%20if%20we%20can%20avoid%20creating%20bespoke%20config%2C%20less%20to%20worry%20about%20and%20maintain%2C%20but%20it%E2%80%99s%20not%20always%20possible%20%3Asmiling_face_with_smiling_eyes%3A%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%40Rishabh%3C%2FSTRONG%3E%20%E2%80%93%20the%20key%20thing%20about%20the%20ms-DS-ConsistencyGuid%20attribute%20is%2C%20it%E2%80%99s%20writable.%20Massive%20win%20when%20you%20need%20to%20move%20objects%20between%20forests.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EReading%20Charles%20question%20again%2C%20it%20looks%20like%20he%E2%80%99s%20is%20trying%20to%20configure%20a%20user%20lifecycle%20application%2Fscript%20and%20needs%20a%20way%20to%20link%20workflows%20to%20Azure%20AD%20identities%20(sync%E2%80%99d%20or%20managed).%20If%20this%20is%20the%20case%2C%20maybe%20a%20simple%20script%20which%20returning%20users%20ObjectIDs%20will%20do%20the%20job%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyhoo%20%E2%80%93%20lots%20of%20interesting%20points.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%40Charles%20%E2%80%93%20ObjectID%20is%20unique%20so%20you%20won%E2%80%99t%20run%20into%20any%20issues%20with%20reuse%20or%20duplication.%20Good%20luck!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294117%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294117%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EThanks%20for%20sharing%20your%20experience.%3CBR%20%2F%3EI%20am%20sharing%20my%20thought%20process.%3C%2FP%3E%3CP%3ESync%20rules%20are%20not%20complicated%20if%20we%20keep%20a%20fair%20documentation.%3CBR%20%2F%3EIn%20fact%20custom%20sync%20rules%20are%20available%20to%20provide%20you%20the%20privilege%20so%20you%20can%20use%20any%20of%20the%20attributes.%3C%2FP%3E%3CP%3EIn%20our%20discussion%2C%20we%20are%20not%20making%20any%20change%20%2C%20infact%20we%20are%20just%20copying%20the%20value%20from%20one%20attribute%20to%20another.%3C%2FP%3E%3CP%3ERegarding%20%E2%80%9Cms-DS-ConsistencyGuid%E2%80%9D%20%3B%3CBR%20%2F%3EIf%20we%20talk%20about%20the%20default%20behavior%20of%20enabling%20%E2%80%9Cms-DS-ConsistencyGuid%E2%80%9D%20as%20source%20anchor%2C%20the%20ObjectID%20is%20written%20back%20to%20this%20attribute.%3C%2FP%3E%3CP%3EFeature%20of%20using%20%E2%80%9Cms-DS-ConsistencyGuid%E2%80%9D%20was%20introduced%20to%20enhance%20the%20administrative%20scope%20of%20managing%20source%20anchor.%3C%2FP%3E%3CP%3ERegards%2C%3CBR%20%2F%3ERishabh%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294051%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294051%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20not%20disagreeing%20with%20you%20comment%20that%20custom%20rules%20cause%20problems%20down%20the%20road%2C%20but%20please%20explain%20if%20you%20can%20how%20this%20can%20wreak%20the%20havoc%26nbsp%3B%20you%20refer%20to.%26nbsp%3B%20Just%20need%20to%20understand%20the%20risks%20of%20that%20vs%20the%20reward%20of%20the%20sync%20back%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMurray%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294038%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294038%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGreat%20question%20and%20some%20interesting%20responses.%20Please%20let%20me%20share%20some%20friendly%20advice%20from%20my%20own%20experiences%20working%20with%20customers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20AAD%20C%20is%20a%20cutdown%20version%20of%20the%20MIM%2FFIM%20sync%20engine%2C%20BUT%2C%20please%20try%20and%20avoid%20adding%20custom%20rules.%20Custom%20rules%20adds%20complexity%20which%20can%20come%20back%20and%20haunt%20you%20when%20the%20time%20comes%20to%20upgrade.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20this%20scenario%20using%20mS-DS-ConsistencyGuid%20as%20the%20source%20anchor%20for%20both%20your%20on-prem%20applications%20and%20Azure%20AD%20might%20be%20the%20best%20option.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20big%20advantage%20of%20using%20mS-DS-ConsistencyGuid%20rather%20than%20GUID%2C%20is%20it%E2%80%99s%20writable.%20So%2C%20if%20you%20do%20need%20to%20cater%20for%20users%20moving%20between%20forests%2C%20it%E2%80%99s%20a%20simple%20process%20of%20copying%20the%20value%20between%20objects.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20regards%20to%20cloud%20accounts%2C%20it%E2%80%99s%20a%20little%20tricky%20as%20you%20need%20the%20object%20written%20back%20to%20create%20an%20on-prem%20%E2%80%9Cshadow%E2%80%9D%20account.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnother%20option%20might%20be%20updating%20the%20application%20authentication%20end-points%20to%20support%20Azure%20AD%20or%20using%20Azure%20application%20proxies.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFurther%20reading%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3EsourceAncor%20and%20mS-DS-ConsistencyGuid%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Fplan-connect-design-concepts%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Fplan-connect-design-concepts%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps%2C%3C%2FP%3E%3CP%3EMatt%20C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-293804%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-293804%22%20slang%3D%22en-US%22%3E%3CP%3ECloud%20Accounts%20are%20not%20imported%20to%20AAD%20connector%20space%2C%20its%20only%20the%20synced%20accounts%20that%20are%20queried.%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20write%20a%20script%20for%20cloud%20accounts%20to%20copy%20the%20value%20from%20ObjectID%20attribute%2C%20convert%20in%20to%20base%2064%20and%20then%20add%20the%20value%20to%20the%20respective%20extension%20attribute.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks...!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-293493%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-293493%22%20slang%3D%22en-US%22%3E%3CP%3EOK%20so%20that%20drives%20more%20questions%20but%20thank%20you%20it%20was%20what%20I%20asked%20for.%20For%20cloud%20only%20accounts%20with%20no%20ImmutableID%20should%20I%2C%20or%20could%20I%2C%20use%20the%20Azure%20ObjectID%20in%20the%20Extension%20Attribute%20instead%3F%20Can%20ADConnect%20run%20the%20base64%20conversion%20of%20Azure%20ObjectID%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-292547%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-292547%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Charles%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20two%20different%20queries%20in%20your%20request.%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%20-%20How%20to%20writeback%20Immutable%20ID%20to%20an%20Extension%20Attribute.%26nbsp%3B%3C%2FP%3E%3CP%3ESecond%20-%20ObjectID%20of%20cloud%20Accounts.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20Order%20to%20complete%20the%20first%20task%2C%3C%2FP%3E%3CP%3ECreate%20and%20Outbound%20rule%20for%20AD%20connector%20that%20must%20map%20source%20anchor%20to%20extension%20attribute%2C%20below%20mentioned%20is%20an%20example%2C%3C%2FP%3E%3CP%3EAdd-ADSyncAttributeFlowMapping%26nbsp%3B%20%60%3C%2FP%3E%3CP%3E-SynchronizationRule%20%24syncRule%5B0%5D%20%60%3C%2FP%3E%3CP%3E-Source%20%40('sourceAnchor')%20%60%3C%2FP%3E%3CP%3E-Destination%20'msDS-cloudExtensionAttribute10'%20%60%3C%2FP%3E%3CP%3E-FlowType%20'Direct'%20%60%3C%2FP%3E%3CP%3E-ValueMergeType%20'Update'%20%60%3C%2FP%3E%3CP%3E-OutVariable%20syncRule%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20the%20rule%20is%20created%20run%20a%20sync%20and%20you%20will%20find%20the%20extension%20attribute%20populated%20with%20source%20anchor.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20501px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60953i749BFF07A11D2605%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Untitled.png%22%20title%3D%22Untitled.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EFor%20the%20second%20query%2C%20ObjectID%20is%20an%20attribute%20that%20belongs%20to%20Object%20Class%20and%20is%20a%20mandate%20attribute%20that%20will%20be%20populated%20for%20all%20the%20objects.%20(Synced%20or%20Cloud)%3C%2FP%3E%3CP%3ETo%20check%20about%20the%20Object%20class%20you%20can%20run%20the%20below%20mentioned%20command%20on%20AzureAD%20powershell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-AzureADUser%20%7C%20Get-Member%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20you%20have%20any%20query.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERishabh%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-292229%22%20slang%3D%22en-US%22%3ERe%3A%20ImmutableID%20to%20Extensionattribute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-292229%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3BI%20have%20not%20tried%20a%20write%20back%20from%20AAD%20to%20AD%20but%20I%20think%20this%20article%20sets%20the%20direction%20in%20a%20possible%20way%20to%20do%20-%20it%20doesn't%20talk%20directly%20about%20it%20but%20it%20sure%20talks%20about%20AD%20to%20AAD%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.undocumented-features.com%2F2018%2F10%2F02%2Fsync-custom-attributes-to-office-365-for-group-based-licensing%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.undocumented-features.com%2F2018%2F10%2F02%2Fsync-custom-attributes-to-office-365-for-group-based-licensing%2F%3C%2FA%3E%20in%20using%20the%20Synchronization%20Rules%20Editor%20-%20review%20this%20great%20article%20by%26nbsp%3B%20%3CSPAN%20class%3D%22author%20vcard%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.undocumented-features.com%2Fauthor%2Fatguilmette%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAaron%20Guilmette%3C%2FA%3E%20and%20see%20if%20this%20opens%20up%20some%20opportunity%20to%20possibly%20do%20what%20you%20want%20done.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22author%20vcard%22%3EMurray%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Charles Ferreira
Occasional Contributor

Hi smart people!

We are considering using Azure AD ImmutableID as our global ImmutableID for other projects. Is it possible to use ADConnect to write the Azure ImmutableID back to an extensionattribute in local AD? I understand there are scripts to generate Immutable from GUID. Not those.

To add to that, cloud only accounts have nothing in the ImmutableID field. Is it OK to then somehow generate the attribute from Azure ObjectID? Or we may get a conflict eventually?

 

Thanks in advance

13 Replies

 I have not tried a write back from AAD to AD but I think this article sets the direction in a possible way to do - it doesn't talk directly about it but it sure talks about AD to AAD https://www.undocumented-features.com/2018/10/02/sync-custom-attributes-to-office-365-for-group-base... in using the Synchronization Rules Editor - review this great article by  Aaron Guilmette and see if this opens up some opportunity to possibly do what you want done.

 

Murray

Solution

Hello Charles, 

 

There are two different queries in your request. 

First - How to writeback Immutable ID to an Extension Attribute. 

Second - ObjectID of cloud Accounts. 

 

In Order to complete the first task,

Create and Outbound rule for AD connector that must map source anchor to extension attribute, below mentioned is an example,

Add-ADSyncAttributeFlowMapping  `

-SynchronizationRule $syncRule[0] `

-Source @('sourceAnchor') `

-Destination 'msDS-cloudExtensionAttribute10' `

-FlowType 'Direct' `

-ValueMergeType 'Update' `

-OutVariable syncRule

 

Once the rule is created run a sync and you will find the extension attribute populated with source anchor.

 

Untitled.png

For the second query, ObjectID is an attribute that belongs to Object Class and is a mandate attribute that will be populated for all the objects. (Synced or Cloud)

To check about the Object class you can run the below mentioned command on AzureAD powershell.

 

Get-AzureADUser | Get-Member

 

Let me know if you have any query.

 

Regards,

Rishabh

 

 

OK so that drives more questions but thank you it was what I asked for. For cloud only accounts with no ImmutableID should I, or could I, use the Azure ObjectID in the Extension Attribute instead? Can ADConnect run the base64 conversion of Azure ObjectID?

Cloud Accounts are not imported to AAD connector space, its only the synced accounts that are queried. 

You can write a script for cloud accounts to copy the value from ObjectID attribute, convert in to base 64 and then add the value to the respective extension attribute.

 

Thanks...!

 

Highlighted

Hello,

 

Great question and some interesting responses. Please let me share some friendly advice from my own experiences working with customers.

 

Yes, AAD C is a cutdown version of the MIM/FIM sync engine, BUT, please try and avoid adding custom rules. Custom rules adds complexity which can come back and haunt you when the time comes to upgrade.

 

In this scenario using mS-DS-ConsistencyGuid as the source anchor for both your on-prem applications and Azure AD might be the best option.

 

The big advantage of using mS-DS-ConsistencyGuid rather than GUID, is it’s writable. So, if you do need to cater for users moving between forests, it’s a simple process of copying the value between objects.

 

With regards to cloud accounts, it’s a little tricky as you need the object written back to create an on-prem “shadow” account.

 

Another option might be updating the application authentication end-points to support Azure AD or using Azure application proxies.

 

Further reading:

sourceAncor and mS-DS-ConsistencyGuid

https://docs.microsoft.com/en-us/azure/active-directory/hybrid/plan-connect-design-concepts

 

Hope this helps,

Matt C

I am not disagreeing with you comment that custom rules cause problems down the road, but please explain if you can how this can wreak the havoc  you refer to.  Just need to understand the risks of that vs the reward of the sync back

 

Murray 

Hello,

Thanks for sharing your experience.
I am sharing my thought process.

Sync rules are not complicated if we keep a fair documentation.
In fact custom sync rules are available to provide you the privilege so you can use any of the attributes.

In our discussion, we are not making any change , infact we are just copying the value from one attribute to another.

Regarding “ms-DS-ConsistencyGuid” ;
If we talk about the default behavior of enabling “ms-DS-ConsistencyGuid” as source anchor, the ObjectID is written back to this attribute.

Feature of using “ms-DS-ConsistencyGuid” was introduced to enhance the administrative scope of managing source anchor.

Regards,
Rishabh

Hi Guys,

 

No issues using this solution, but it does add complexity which I agree needs to be documented and taken into consideration moving forward. As I say to my customers, if we can avoid creating bespoke config, less to worry about and maintain, but it’s not always possible :smiling_face_with_smiling_eyes:

 

@Rishabh – the key thing about the ms-DS-ConsistencyGuid attribute is, it’s writable. Massive win when you need to move objects between forests.

 

Reading Charles question again, it looks like he’s is trying to configure a user lifecycle application/script and needs a way to link workflows to Azure AD identities (sync’d or managed). If this is the case, maybe a simple script which returning users ObjectIDs will do the job?

 

Anyhoo – lots of interesting points.

 

@Charles – ObjectID is unique so you won’t run into any issues with reuse or duplication. Good luck!

Thanks for the replies. This is a great dialogue. As I understand it, since we started this (years ago before me) without mS-DS-ConsistencyGuid it's too late to change it. It would certainly fit the bill

@ThinkSync  Your assessment is correct, we are working toward a better lifecycle and looking to link the user between apps and not have to visit this again for a long time! ObjectID sounds like a plan

OK so if I should start a new thread let me know but this is starting to take shape here, thanks very much!

Prompting another question in the same line. Are Azure ObjectID's truly globally unique? Meaning across any Azure AD? Or is there some chance that there is, like life on another planet, a possibility for duplication?

Hi Charles,

 

Apologises for the late response, work has been hectic.

 

ObjectID is only guaranteed unique within a specific tenant. If you need to compare objects across multiple tenants, I’d recommend cross referencing with another attribute.

 

ProxyAddresses is probably the best attribute to use as UPN will usually be updated to reflect name changes.

 

PowerShell example

$UserOID = "84214-20sb-42e-a2c7-a24520a77228"

$UserSMTP = "ThinkSync@company.com"

 

Get-MsolUser -All | Where {$_.ObjectId -match $UserOID -AND $_.ProxyAddresses -match $UserSMTP} 

No problem. I did get a response from a program manager at Microsoft that I had met at Ignite. He indicated to read this article: https://en.wikipedia.org/wiki/Universally_unique_identifier
Apparently the possibility for collision is so low it's likely not an issue?.
It's not specifically that we are looking to compare but to have a good way to generate an immutable ID for claims, reporting, etc, as you indicated. It would be a standard here for the lifecycle of a user across many apps and are concerned if there is someday an acquisition or need to use the ObjectID from another Azure AD in the same capacity. We didn't want to stand up another app to generate them if there is already something.

Great stuff, good luck and please reach out to the community if there's anything we can help with :)

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies