Microsoft active directory spoke

harry24
Tera Contributor

Integration with active directory is done .

Also all the attributes of the user are being set , how to set the cn of user as by default it takes samaccountname as cn , i want to this using flow designer 

3 REPLIES 3

Anshu_Anand_
Kilo Sage
Kilo Sage

To set the cn attribute of a user in Active Directory using ServiceNow Flow Designer, you can follow these steps:

  1. Create a new flow or open an existing flow that performs user synchronization with Active Directory.
  2. Add an "Update Record" action step to the flow.
  3. In the "Update Record" action step, select the table that corresponds to the Active Directory user record (e.g., sys_user_ad).
  4. In the "Query" section of the "Update Record" action step, use a condition to retrieve the user record that needs to be updated. For example, you could use the userPrincipalName attribute to uniquely identify the user record.
  5. In the "Fields to Set" section of the "Update Record" action step, add a new field to update the cn attribute of the user record. Set the value of the cn field to the desired value (e.g., the user's full name).
  6. Save the flow and test the integration.

Note that the exact configuration of the "Update Record" action step will depend on the specifics of your Active Directory integration, such as the mapping of ServiceNow user fields to Active Directory attributes. You may need to adjust the query and field mappings to match your specific setup.

Also, keep in mind that updating the cn attribute of a user in Active Directory may have other implications for your system, such as affecting group memberships or other access controls. Be sure to thoroughly test any changes to your Active Directory integration before deploying to a production environment.

Regards,
Anshu

Cn doest not get updated like this , thanks for replying but i had already received this solution from chatgpt

Hi @harry24 ,

 

Can you provide the solution, please