how do I know the domain controller (URL) for an "Add user to AD Group" orchestration activity?

patricklatella
Mega Sage

Hi all,

I'm setting up an orchestration for adding users to AD Group using the "Add user to AD Group" activity in my workflow.  One of the fields is domain controller...how do I get the value for this?  Is it necessary to run a "Probe" activity?

thanks!

1 ACCEPTED SOLUTION

Yes, you can do that too. I add server url when user is imported so I have below in my Tranform Map script

// Set the source LDAP server into the target record
target.ldap_server = source.sys_import_set.data_source.ldap_target.server_url;

View solution in original post

6 REPLIES 6

Mike Patel
Tera Sage

you can hard code value like xyz.com or dc001.xyx.com. I prefer to store domain controller server name in sys_properties and do gs.getProperty('xyz') in activity

Hi Mike, 

thanks for the reply.  How do I know what the value is though?  We have our LDAP setup already, would the URL be in that setup somewhere?

Hi Mike,

I actually found this script in the documentation...seems to be working

${workflow.inputs.u_user.ldap_server.server_url}

https://docs.servicenow.com/bundle/geneva-it-operations-management/page/product/orchestration/task/t_ActiveDirUserMgmtExample.html

find_real_file.png

Yes, you can do that too. I add server url when user is imported so I have below in my Tranform Map script

// Set the source LDAP server into the target record
target.ldap_server = source.sys_import_set.data_source.ldap_target.server_url;