i have the records stored in a SharePoint list called LeaveRequest :

and users stored in a office364 group.
what i want is that myapp gets the sign in user email and check if he is a normal user or a manager in office group, then based on that if he is a manager the gallery will display all records in the SharePoint list that he assigned in as manager and display his records too if he requested a leave but if he is normal user then only display the users records alone