API resource reference for OrganizationMembership, part of the Resource Manager service. To create or change one, see Changing resources; to inspect, see Reading resources.
Identity
Overview
AnOrganizationMembership connects a user to an organization and, optionally, grants that user one or more roles within it. Creating a membership establishes the user-organization relationship; listing roles on the membership grants the corresponding permissions.
Use it whenever you want to add someone to an organization or adjust what they can do there. When you assign roles, the controller automatically creates and manages the underlying PolicyBinding resources for each role, so you manage access in one place. Roles can be added or removed at any time after the membership exists. The referenced user, organization, and roles must already exist before you create the membership.