Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Add user to Azure AD group

Nikita50
Tera Expert

Hi, 

I am trying to add user to Azure AD group via ServiceNow

For Look up user which parameter should be mapped to User principal name (UserID or Email)

Nikita50_0-1744275615659.png

and how to use output of this activity in Add user to Group Activity. In group ID, I am putting sys_id of group provided by AD team. What should be added in User ID field.

Nikita50_1-1744275696758.png

 

As per AD source attribute is "onPremisesSAMAccountName".

I have tried using email address and userid , i am getting following error.

 

Nikita50_2-1744276198424.png

Please suggest.

 

 

 

1 REPLY 1

SwathiPedireddy
Kilo Sage

Hi @Nikita50 

 

Check that user is part of AD or any test account and User Principal Name is login name

 

Thanks,

Swathi