On prem AD - SNOW Group Management Integration - Owner can't get sync using Microsoft AD Spoke
						
					
					
				
			
		
	
			
	
	
	
	
	
Options
			
				
					
	
			
		
	- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
‎10-19-2023 04:15 AM
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:
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
	
		
		
			
			
			
					
	
			