Microsoft Graph List servicePrincipal transitive memberOf

Get the groups and directory roles that this servicePrincipal is a member of. This operation is transitive and will include all groups that this service principal is a nested member of.