Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

New o365 Profile action for getting organisation structure

I need to be able to get both the departmental structure in which a user resides, as well as the reporting structure the live under as 2 strings.


For example:

Department structure

Company > Sales > Sales Region A > Team X > Group One
Company > Marketing  > Team X > Group Five


Reporting structure

Fred Smith > Harry Jones > Sally Green > Jane Brown


I'd like each path to be returned as a single string with standard seperator between each (maybe a pipe | or > ).
As a large company it is common for us to have the same department name in different areas of the business, so just returning the department of the user is not sufficient to uniquely identify where they belong.


This allows us to sort and group list and library actors by department or organisation area so we can allocate approvals and reviews correctly and generate reports accurately.


Community Support
Community Support

Re: New o365 Profile action for getting organisation structure

Hi LizVdP,


I am afraid that your scenario might not be achieved currently.

As currently we can use the action Get user profile to get information such as Company name, Department, Display name, etc. It seems that we are not able to get the department structure or report structure likes you mentioned.

I would suggest you create a request at Flow Ideas Forum, I will also collect and report it from my side.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,332)