https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/equaluseroruserhierarchyandteams?view=dataverse-latest
EqualUserOrUserHierarchyAndTeams Function (Microsoft.Dynamics.CRM) | Microsoft Learn
Query function that evaluates whether the entity equals current user or their reporting hierarchy and teams.
microsoft dynamics crmfunctionlearn