No video

Get ALL User Profile Data using Power Automate

  Рет қаралды 15,379

Christine Payton

Christine Payton

10 ай бұрын

User data is great for setting up row-level security roles in Power BI. In this video, we get the profile data and manager for each user using Power Automate, then put it into a CSV file stored in SharePoint for easy access.
Have something else interesting you will use this data for? Let me know in the comments!
Here's the link for my preferred method for connecting to SharePoint for single files (mentioned in the video): • How to change a Power ...
0:57 Create the flow
1:40 Get user profiles
2:45 Get managers
9:20 Send to CSV

Пікірлер: 30
@Romenet310
@Romenet310 8 ай бұрын
I thought this was really good. Not exactly what I was looking for but very close and helpful for my newbie self. Thank you!
@Neilxxl7890
@Neilxxl7890 5 ай бұрын
Once again, it is absolutly clear and understandable even for a french user. Thanks :)
@dineezmrdk8404
@dineezmrdk8404 6 ай бұрын
Thank you Christine, this was really Awesome! 🤝 I have created this flow without 3rd step Search user instead I used Excel table with specified set of members as this search user is not seems to be working with our org which has huge members.
@luigir2459
@luigir2459 10 ай бұрын
Hi Christine, Is there a way I can specify the type of users we want to search for? If I leave it blank it searches for EVERYONE but I'm looking for example just the "Department":"Outside Sales"
@bi-ome
@bi-ome 10 ай бұрын
Hmm, good question. It looks like it's just searching variants of the name from the tooltip (I tried searching Sales in mine too, and it came back blank). You could either: 1. Search to get everything, then use Filter Array to filter on department; or 2. Use the "get direct reports" action instead, and feed it a manager's login name (assuming everyone in the department reports to them)
@luigir2459
@luigir2459 10 ай бұрын
@@bi-omeI ended up using the first option with a Filter Array and it's working properly. Wanting to give you a video idea since I just did this with my team not too long ago - creating a dynamic approver process through sharepoint and power automate.
@bi-ome
@bi-ome 10 ай бұрын
@@luigir2459 Awesome! I have been meaning to make a video on approvals, it's on my list for sure. 😄
@Romenet310
@Romenet310 8 ай бұрын
I think we have over 20,000 employees. If I get all and then filter, I am risking a performance problem? Or since it’s all in the cloud, am I ok? I can’t seem to get the filter array to work right. Where would it be positioned in the order?
@bi-ome
@bi-ome 8 ай бұрын
@@Romenet310 Worst case MS will throttle the flow - I think your allowed usage depends on the licensing. Pagination supposedly maxes out at 100k but I don’t have a large number of users so I couldn’t test it. If you’re willing, please try it and let me know how it does! If it doesn’t work, the official way to be doing this is to use a scheduled PowerShell script (would require an admin account and local admin access on the machine).
@deepaktiwary4395
@deepaktiwary4395 6 ай бұрын
actual information, well described thank you.most appreciated.
@margaritagrigaleviciute2369
@margaritagrigaleviciute2369 23 күн бұрын
Great explanation! Thank you! Is it possible to get licenses assigned to users through this?
@bi-ome
@bi-ome 23 күн бұрын
Thanks! Licensing info isn't in the user profile. You can get it with Graph API with an HTTP action, but people typically use PowerShell for that sort of thing--
@muhwindi
@muhwindi 4 ай бұрын
Perfect tutorial. Big thanx
@user-ey1ok7dz1e
@user-ey1ok7dz1e 18 күн бұрын
How can I retrieve the license data of a user (so that I can see which user has which license)?
@bi-ome
@bi-ome 18 күн бұрын
You would need to do a Graph API call for that, here's the documentation: learn.microsoft.com/en-us/graph/api/user-assignlicense?view=graph-rest-1.0&tabs=http If you want to use Power Automate, it'd be the HTTP connector, but most people get licensing data with PowerShell - there's a slew of PowerShell scripts available for it out there online because that's how most administrators manage licensing at scale.
@RobenildodeOliveira
@RobenildodeOliveira 2 ай бұрын
Thank you Christine!!!!!!
@connorsheehan
@connorsheehan 7 ай бұрын
You're the best! Thank you.
@shahg390
@shahg390 8 ай бұрын
Can you please show how to get all m365 users and add them to sharepoint list. eg name, email address, title, department and Office location.
@bi-ome
@bi-ome 8 ай бұрын
Yeah, what you'd probably need to do here is use a "parse json" action on your users variable, then for-each loop on the items in it to create an item for each. You'd need to decide how you handle updates to it, otherwise it'll just add all the users every time it runs and you probably don't want duplicates, so it's more complicated than it seems at the outset, particularly if you need to remove individuals that leave on top of that. I'll put "get data from somewhere and put it in a SP list" on my queue. 😀
@patrikmelichercik7709
@patrikmelichercik7709 7 ай бұрын
Hi Christine. good video from you but as I see the apply for each action can not exceed more than 999 values from the search for user v2 action. is there a way to process all users. In my organisatiin there are maybe more than 500k users. it would be fine to get all of them no matter the column orders etc.
@bi-ome
@bi-ome 7 ай бұрын
PA won’t be handling anything with 500k I don’t think - people normally get around size issues with pagination settings or querying in parts, but 500k is too big.😅 PowerShell will probably be your best bet - it’ll let you set ResultSetSize to increase the max size. learn.microsoft.com/en-us/powershell/module/activedirectory/get-adobject?view=windowsserver2022-ps
@chriswoodhead1188
@chriswoodhead1188 7 ай бұрын
Hi Christine, great video and really clear. Do you know if its possible, or how I would, specify say a list of 100 specific names and run this flow? I have a huge user base and just need this for around 100 names. I thought maybe an apply to each but I wasn't sure? Thanks!
@bi-ome
@bi-ome 7 ай бұрын
Yeah, if you get all the emails in an array variable, or even Excel would probably work, you can “apply to each” on those and use “get user profile” instead of the search action and append the outputs to a variable (or add rows to Excel).
@chriswoodhead1188
@chriswoodhead1188 7 ай бұрын
@@bi-ome thanks so much!
@Transistor730
@Transistor730 9 ай бұрын
Firstly, thanks for the great content! I work for a global company and even if I set the maximum value in pagination for Search for Users, it gives me not all the users. Actually I want to filter the users with their domain name on emails (the text after @) before searching all the users. Although, there is a ‘Search Term’ opportunity on Search for Users, I couldn’t set it with the email option. Is there a way to filter all users, before Search for Users? I think, I explained what I want to achieve 😀 Greetings from Türkiye 🇹🇷
@bi-ome
@bi-ome 9 ай бұрын
Thanks! Yes - there is a limit, but I could not seem to find any record of what the return limit actually is in the documentation, what was the number it stopped at for you? The search does not support wildcards and seems to only search from the beginning of the username (for example I searched for "christine" and got results, but nothing with using my domain). Your best bet is probably to try the HTTP Request action in Power Automate and query the Graph API: learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
@Transistor730
@Transistor730 9 ай бұрын
The number, which stopped me was around 100.000. I tried the suggestion 'HTTP Request Action' you made (with UserPrincipialName), but it gives me the 'Error Code: 500', and I think it's because of the administrative permission, which I don't have. But I solved my problem in a different way: I got the UserIDs (about 150) from our internal website and copy them to Excel programmatically. Then I use 'List rows present in a table' in order to read them, appended to array, and then search them in 'Search for Users (V2)' with 'Apply to Each'. Finally I got them with their departments, which I later use in my Power BI Dashboard. Thanks again! Your video about Search for Users saved me and showed me the Power of 'Power Automate' !!!
@hi_vishy
@hi_vishy Ай бұрын
Excellent
@sebastianverdugo8066
@sebastianverdugo8066 26 күн бұрын
Simple, clear, wonderful. Marry Me.
Get and visualize GROUP MEMBERS & OWNERS with Power Automate & Power BI
26:52
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 30 МЛН
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 46 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 44 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 37 МЛН
Embed a Table from Power BI in an Email with Power Automate
19:20
Christine Payton
Рет қаралды 34 М.
O365 - Check if user exist or not using PowerAutomate
7:06
M365 Tech Help
Рет қаралды 15 М.
Create a Ticketing System in Sharepoint with Power Automate
13:46
SharePointPro
Рет қаралды 103 М.
Easy Sequential Approvals in Power Automate | Beginner's Tutorial
17:18
Move Microsoft Forms Data to Microsoft Lists
16:19
April Dunnam
Рет қаралды 172 М.
Use Power Automate to Send Excel Data to Outlook | Practical Use Case
9:33
Power Automate flow variables - How to use them
14:02
Reza Dorrani
Рет қаралды 73 М.
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 30 МЛН