Microsoft active directory spoke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 08:34 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 08:59 AM
To set the cn
attribute of a user in Active Directory using ServiceNow Flow Designer, you can follow these steps:
- Create a new flow or open an existing flow that performs user synchronization with Active Directory.
- Add an "Update Record" action step to the flow.
- In the "Update Record" action step, select the table that corresponds to the Active Directory user record (e.g.,
sys_user_ad
). - 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. - 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 thecn
field to the desired value (e.g., the user's full name). - 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.
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 09:02 AM
Cn doest not get updated like this , thanks for replying but i had already received this solution from chatgpt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 11:49 PM