Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

On prem AD - SNOW Group Management Integration - Owner can't get sync using Microsoft AD Spoke

Pavan210
Tera Contributor

Hi All,

We done a group management integration between ServiceNow and onPrem AD by using Microsoft AD spoke through a flow designer using custom action(power shell script). Here data sync is happening but, we could not able to add/update the manager from ServiceNow to onPrem AD.
If there is any custom actions/ flow parts are available please share here. Or else  anyone please suggest other approaches like can we do this entire  group management integration between ServiceNow and onPrem AD   by using rest message ?.

Error:

Pavan210_0-1697713761119.png

PowerShell Script:

 

# Import the Active Directory module
Import-Module "$executingScriptDirectory\ADSpoke\ActiveDirectoryMain"
#$groupname =  $groupname -replace "%27","'";
#$username =   $username -replace "%27","'";
$groupname = " Grp1"
$username="214762"
$type = "Group"

$userADObject = getADObject -domainController $domainController -type $type -objectName $username -useCred $useCred -credential $cred
$managedByValue = $userADObject.DistinguishedName


#updateActiveDirectoryObject -domainController $computer -type $type -objectName $groupname -objectProperties @{"managedBy" = $managedByValue} -useCred $useCred -credential $cred

 



Thanks and regards,
Pavan Kumar Gosani.

0 REPLIES 0