# Policy Troubleshooter V3 API - Module Google::Cloud::PolicyTroubleshooter::Iam::V3::MembershipMatchingState (v0.12.0)

0.12.0 (latest) 0.11.1 0.10.0 0.9.1 0.8.0 0.7.0 0.6.1 0.5.0 0.4.1 0.3.2 0.2.0 0.1.0 Reference documentation and code samples for the Policy Troubleshooter V3 API module Google::Cloud::PolicyTroubleshooter::Iam::V3::MembershipMatchingState.

Whether the principal in the request matches the principal in the policy.

## Constants

### MEMBERSHIP_MATCHING_STATE_UNSPECIFIED

**value:** 0  
Not specified.

### MEMBERSHIP_MATCHED

**value:** 1  

The principal in the request matches the principal in the policy. The
principal can be included directly or indirectly:

<br />

- A principal is included directly if that principal is listed in the role binding.
- A principal is included indirectly if that principal is in a Google group, Google Workspace account, or Cloud Identity domain that is listed in the policy.

### MEMBERSHIP_NOT_MATCHED

**value:** 2  
The principal in the request doesn't match the principal in the policy.

### MEMBERSHIP_UNKNOWN_INFO

**value:** 3  
The principal in the policy is a group or domain, and the sender of the
request doesn't have permission to view whether the principal in the
request is a member of the group or domain.

### MEMBERSHIP_UNKNOWN_UNSUPPORTED

**value:** 4  
The principal is an unsupported type.