Apr 23 2020 11:05 AM
Apr 23 2020 11:05 AM
We have created some great SharePoint lists for deployment purposes and the one SWEET function I would like to see is every time we generate a new SP list, it populates the Name field with users from Office 365 based on the location. This would allow us to get active user lists instead of manually adding them.
One workaround we know works now is to export the users from Office 365 into a csv file and then import them into the list. I would like this "process" to happen automatically when the list is created.
Apr 23 2020 12:14 PM
Sounds like you're going to want to create an app for this. Use the MS Graph for the User Info - https://docs.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
Apr 23 2020 03:32 PM
@Timothy Balkthanks for the reply. Taking a few steps back, create an app? As in Power Apps? Our environment is completely O365.
Apr 24 2020 06:49 AM
@Derek Gillespie Yes, that would be one way. Initiate the creation of the process via a PowerApp - collect the data you need to create the list, then trigger a PowerAutomate workflow to create the list and populate the list with the data from the User Graph API. I think the connector to create the list and pull the user data to the list may be custom connectors and would require some premium licenses to get that accomplished.
So the other app route would be to deploy PnP kind of solution that someone would have to write code to make things happen. Unfortunately, I'm not very familiar with what it would take to do this.
Feb 19 2021 10:17 AM
Without delving into learning PowerApps just yet, is there a simple way to ask Sharepoint to auto load employee information like name, email, or dept based on Azure Active Directory information?
Currently, I can search/find employees and add them to Sharepoint List column by searching for them using a company email address. We also have unique identifiers like employee numbers that I'd like to use instead.
1) How can I instruct SP to search for a person based on this number instead of their email address? 2) How can I link columns for "auto filling" subsequent columns with name, email, dept, etc from the unique number in Azure?
Appreciate your insight and thank you!
Feb 20 2021 07:03 AM
@ninjaryder actually I'd say that using Power Apps is your best option; it's not difficult to get or search for employees. We use it for a staff search app I built where you can enter the first letters of a name, job title, location or team name to bring back all the data on the employee(s) from Delve. We have over 1000 staff in our division and it runs very quickly. There are a lot of very good videos about Power Apps by Shane Young on YouTube and I recommend you have a look at those.
Microsoft Power Automate Community Super User
Feb 22 2021 06:48 AM
I'm thinking a bit on this - I think I need more information...
First pass at this problem, I would look at modifying the user profile synchronization attributes in the SharePoint Admin Center. Add the custom attribute for the ID: Add and edit user profile properties in SharePoint - SharePoint in Microsoft 365 | Microsoft Docs then you have to manage a process to sync this property - Bulk update custom user profile properties for SharePoint Online | Microsoft Docs which is kind of a bummer - if this were on-prem, you would be able to configure this custom property to pull the information from the synchronization connection.
Now for the search portion, are you talking about search via the people pickers? or about Search in the tenant?
Search in the tenant *I think* would automatically start indexing the custom attribute and would be searchable in the "People" portion of search. If it doesn't add it in automatically, you can modify the search schema and map the property to a managed property Manage the search schema in SharePoint - SharePoint in Microsoft 365 | Microsoft Docs then this property could be used in search.
The out of the box people picker is something different - honestly I don't think you could modify this to be searchable via a custom attribute. Also, I'm fairly sure the people pickers use Azure AD in SharePoint Online and the search function for this is immutable. I've submitted a few tickets to try to see if we could make the people picker remove accounts based on attributes in their profile and those answers have been "No".
As far as the information aside from the Custom ID attribute - have you had a look at the hidden user list? <Tenant SP Online URL>/_catalogs/users/simple.aspx Maybe this could be useful?
Feb 22 2021 07:27 AM
Thanks Timothy.. The Tenant and People Pickers are tools/language hare are above my knowledge/skill level.. I also do not have access to the Sharepoint Admin Center as I'm not in IT.
I appreciate the response, but it might be that I need to learn PowerApps to build this. I appreciate your insight and response, however.
Feb 22 2021 10:28 AM
Sep 24 2021 10:56 AM