Hi Hugo/Daan, Would you please cherry-pick the following IAM bug fixes from 4.4-forward branch to 4.4 branch?
Commit : 4f2a20f7b35c2a250614b7cf32879d7bb87b7a62 CLOUDSTACK-6502:IAMGroup.list and IAMPolicy.list in marvin base.py are not working. Commit: 092b4be8d91e2e63aea12e1d40aa264e144e6d84 CLOUDSTACK-6512:IAM - Not able to list shared networks in the Vm deployment flow Commit: a4cb8d11462cb404eba067541639d46e509d717b CLOUDSTACK-6513: IAM - Templates - When templates are listed with templatefilter="shared" is used , we see public templates also being included in the list. Commit: b2b59ed83a566762c960371717b7998b4719ba70 CLOUDSTACK-6533: IAM - Templates - Public templates do not have permissions to be used by ROOT group. Commit: 0767060b1f4cf96db721bd625971345fbda4c48c CLOUDSTACK-6532:Affinity Groups - As admin user, not able to list all affinity groups available for regular users by passing account and domainId paramater. Commit:7309146f9f3f57b7f7cad40945e11e34a6ff6fab CLOUDSTACK-6513: Optimize code by removing deprecated utility to QueryManagerImpl as private method just used for listTemplates and listAffinityGroups to avoid misuse by new list APIs. Commit: 3af2f6d1418c66533067b5050d2fe3fd4200beb9 CLOUDSTACK-6513: templateFilter=shared should not show self-owned template. Thanks. -min