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.
Company > Sales > Sales Region A > Team X > Group One Company > Marketing > Team X > Group Five
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.
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.