Populte Department and related Employee Name from AD in SharePoint Custom List

adil 1,431 Reputation points
2021-06-16T13:49:39.833+00:00

I Created a custom list and it has below columns

Appointment Date and Time Department Employee

Her I want to Populate Departments from Company and when I select specific department related employees will populate in employee dropdown.

How can i achieve this any way do this by out of the box or i must write farm solution for this. I created User profile service application.

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Emily Du-MSFT 51,856 Reputation points Microsoft External Staff
    2021-06-17T08:53:43.283+00:00

    @adil

    Per my knowledge, there is no OOTB option to get Department and Employee Name from AD into columns of a list.

    As a workaround, you could create another list to store Department and Employee Name. Then create a lookup column to get Department when you select specific Employee Name.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. sadomovalex 3,636 Reputation points
    2021-06-21T15:21:01.877+00:00

    there is no OTB solution for that. As far as I understood you work with on-prem version. You already configured User Profile Service app which is good. Now you need to run sync and ensure that user profiles are populated from AD and have Department set. After that you will need custom timer job (or PowerShell script which will run periodically by schedule): it should go through all user profiles programmatically and synchronize changes to your custom list (if you will sync users to lists once - then changes in AD won't reflect in your lists). You may start e.g. with this example: Get all user profiles to list.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.