# Cloud Resource Manager v3 API - Class OrganizationsClientImpl (2.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/2.5.0/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/2.4.0/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/2.3.0/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/2.2.0/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/2.1.0/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/2.0.0/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/1.2.0/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/1.1.0/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/1.0.0/Google.Cloud.ResourceManager.V3.OrganizationsClientImpl)

    public sealed class OrganizationsClientImpl : OrganizationsClient

Reference documentation and code samples for the Cloud Resource Manager v3 API class OrganizationsClientImpl.

Organizations client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [OrganizationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient) \> OrganizationsClientImpl

## Inherited Members

[OrganizationsClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_DefaultEndpoint) [OrganizationsClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_DefaultScopes) [OrganizationsClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_ServiceMetadata) [OrganizationsClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_CreateAsync_System_Threading_CancellationToken_) [OrganizationsClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_Create) [OrganizationsClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_ShutdownDefaultChannelsAsync) [OrganizationsClient.GetOrganizationAsync(GetOrganizationRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetOrganizationAsync_Google_Cloud_ResourceManager_V3_GetOrganizationRequest_System_Threading_CancellationToken_) [OrganizationsClient.GetOrganization(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetOrganization_System_String_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.GetOrganizationAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetOrganizationAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.GetOrganizationAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetOrganizationAsync_System_String_System_Threading_CancellationToken_) [OrganizationsClient.GetOrganization(OrganizationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetOrganization_Google_Api_Gax_ResourceNames_OrganizationName_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.GetOrganizationAsync(OrganizationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetOrganizationAsync_Google_Api_Gax_ResourceNames_OrganizationName_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.GetOrganizationAsync(OrganizationName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetOrganizationAsync_Google_Api_Gax_ResourceNames_OrganizationName_System_Threading_CancellationToken_) [OrganizationsClient.SearchOrganizations(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SearchOrganizations_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.SearchOrganizationsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SearchOrganizationsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetIamPolicyAsync_Google_Cloud_Iam_V1_GetIamPolicyRequest_System_Threading_CancellationToken_) [OrganizationsClient.GetIamPolicy(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetIamPolicy_System_String_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.GetIamPolicyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetIamPolicyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.GetIamPolicyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetIamPolicyAsync_System_String_System_Threading_CancellationToken_) [OrganizationsClient.GetIamPolicy(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetIamPolicy_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.GetIamPolicyAsync(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetIamPolicyAsync_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.GetIamPolicyAsync(IResourceName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetIamPolicyAsync_Google_Api_Gax_IResourceName_System_Threading_CancellationToken_) [OrganizationsClient.SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SetIamPolicyAsync_Google_Cloud_Iam_V1_SetIamPolicyRequest_System_Threading_CancellationToken_) [OrganizationsClient.SetIamPolicy(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SetIamPolicy_System_String_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.SetIamPolicyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SetIamPolicyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.SetIamPolicyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SetIamPolicyAsync_System_String_System_Threading_CancellationToken_) [OrganizationsClient.SetIamPolicy(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SetIamPolicy_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.SetIamPolicyAsync(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SetIamPolicyAsync_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.SetIamPolicyAsync(IResourceName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SetIamPolicyAsync_Google_Api_Gax_IResourceName_System_Threading_CancellationToken_) [OrganizationsClient.TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_TestIamPermissionsAsync_Google_Cloud_Iam_V1_TestIamPermissionsRequest_System_Threading_CancellationToken_) [OrganizationsClient.TestIamPermissions(string, IEnumerable\<string\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_TestIamPermissions_System_String_System_Collections_Generic_IEnumerable_System_String__Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.TestIamPermissionsAsync(string, IEnumerable\<string\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_TestIamPermissionsAsync_System_String_System_Collections_Generic_IEnumerable_System_String__Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.TestIamPermissionsAsync(string, IEnumerable\<string\>, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_TestIamPermissionsAsync_System_String_System_Collections_Generic_IEnumerable_System_String__System_Threading_CancellationToken_) [OrganizationsClient.TestIamPermissions(IResourceName, IEnumerable\<string\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_TestIamPermissions_Google_Api_Gax_IResourceName_System_Collections_Generic_IEnumerable_System_String__Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.TestIamPermissionsAsync(IResourceName, IEnumerable\<string\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_TestIamPermissionsAsync_Google_Api_Gax_IResourceName_System_Collections_Generic_IEnumerable_System_String__Google_Api_Gax_Grpc_CallSettings_) [OrganizationsClient.TestIamPermissionsAsync(IResourceName, IEnumerable\<string\>, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_TestIamPermissionsAsync_Google_Api_Gax_IResourceName_System_Collections_Generic_IEnumerable_System_String__System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ResourceManager.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3)

## Assembly

Google.Cloud.ResourceManager.V3.dll

## Remarks

Allows users to manage their organization resources.

## Constructors

### OrganizationsClientImpl(OrganizationsClient, OrganizationsSettings, ILogger)

    public OrganizationsClientImpl(Organizations.OrganizationsClient grpcClient, OrganizationsSettings settings, ILogger logger)

Constructs a client wrapper for the Organizations service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organizationshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organizations.OrganizationsClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsSettings` The base [OrganizationsSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override Organizations.OrganizationsClient GrpcClient { get; }

The underlying gRPC Organizations client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organizationshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organizations.OrganizationsClient` |   |

**Overrides** [OrganizationsClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GrpcClient)

## Methods

### GetIamPolicy(GetIamPolicyRequest, CallSettings)

    public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for an organization resource. The policy may
be empty if no such policy or resource exists. The `resource` field should
be the organization's resource name, for example: "organizations/123".

Authorization requires the IAM permission
`resourcemanager.organizations.getIamPolicy` on the specified organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Overrides** [OrganizationsClient.GetIamPolicy(GetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetIamPolicy_Google_Cloud_Iam_V1_GetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

    public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for an organization resource. The policy may
be empty if no such policy or resource exists. The `resource` field should
be the organization's resource name, for example: "organizations/123".

Authorization requires the IAM permission
`resourcemanager.organizations.getIamPolicy` on the specified organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Overrides** [OrganizationsClient.GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetIamPolicyAsync_Google_Cloud_Iam_V1_GetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetOrganization(GetOrganizationRequest, CallSettings)

    public override Organization GetOrganization(GetOrganizationRequest request, CallSettings callSettings = null)

Fetches an organization resource identified by the specified resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.GetOrganizationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organization` | The RPC response. |

**Overrides** [OrganizationsClient.GetOrganization(GetOrganizationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetOrganization_Google_Cloud_ResourceManager_V3_GetOrganizationRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetOrganizationAsync(GetOrganizationRequest, CallSettings)

    public override Task<Organization> GetOrganizationAsync(GetOrganizationRequest request, CallSettings callSettings = null)

Fetches an organization resource identified by the specified resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.GetOrganizationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organization` | A Task containing the RPC response. |

**Overrides** [OrganizationsClient.GetOrganizationAsync(GetOrganizationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_GetOrganizationAsync_Google_Cloud_ResourceManager_V3_GetOrganizationRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchOrganizations(SearchOrganizationsRequest, CallSettings)

    public override PagedEnumerable<SearchOrganizationsResponse, Organization> SearchOrganizations(SearchOrganizationsRequest request, CallSettings callSettings = null)

Searches organization resources that are visible to the user and satisfy
the specified filter. This method returns organizations in an unspecified
order. New organizations do not necessarily appear at the end of the
results, and may take a small amount of time to appear.

Search will only return organizations on which the user has the permission
`resourcemanager.organizations.get`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.SearchOrganizationsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.SearchOrganizationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organization` | A pageable sequence of [Organization](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organization) resources. |

**Overrides** [OrganizationsClient.SearchOrganizations(SearchOrganizationsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SearchOrganizations_Google_Cloud_ResourceManager_V3_SearchOrganizationsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchOrganizationsAsync(SearchOrganizationsRequest, CallSettings)

    public override PagedAsyncEnumerable<SearchOrganizationsResponse, Organization> SearchOrganizationsAsync(SearchOrganizationsRequest request, CallSettings callSettings = null)

Searches organization resources that are visible to the user and satisfy
the specified filter. This method returns organizations in an unspecified
order. New organizations do not necessarily appear at the end of the
results, and may take a small amount of time to appear.

Search will only return organizations on which the user has the permission
`resourcemanager.organizations.get`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.SearchOrganizationsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.SearchOrganizationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organization` | A pageable asynchronous sequence of [Organization](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.Organization) resources. |

**Overrides** [OrganizationsClient.SearchOrganizationsAsync(SearchOrganizationsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SearchOrganizationsAsync_Google_Cloud_ResourceManager_V3_SearchOrganizationsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicy(SetIamPolicyRequest, CallSettings)

    public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the access control policy on an organization resource. Replaces any
existing policy. The `resource` field should be the organization's resource
name, for example: "organizations/123".

Authorization requires the IAM permission
`resourcemanager.organizations.setIamPolicy` on the specified organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Overrides** [OrganizationsClient.SetIamPolicy(SetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SetIamPolicy_Google_Cloud_Iam_V1_SetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

    public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the access control policy on an organization resource. Replaces any
existing policy. The `resource` field should be the organization's resource
name, for example: "organizations/123".

Authorization requires the IAM permission
`resourcemanager.organizations.setIamPolicy` on the specified organization.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Overrides** [OrganizationsClient.SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_SetIamPolicyAsync_Google_Cloud_Iam_V1_SetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissions(TestIamPermissionsRequest, CallSettings)

    public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)

Returns the permissions that a caller has on the specified organization.
The `resource` field should be the organization's resource name,
for example: "organizations/123".

There are no permissions required for making this API call.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | The RPC response. |

**Overrides** [OrganizationsClient.TestIamPermissions(TestIamPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_TestIamPermissions_Google_Cloud_Iam_V1_TestIamPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

    public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)

Returns the permissions that a caller has on the specified organization.
The `resource` field should be the organization's resource name,
for example: "organizations/123".

There are no permissions required for making this API call.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Overrides** [OrganizationsClient.TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ResourceManager.V3/latest/Google.Cloud.ResourceManager.V3.OrganizationsClient#Google_Cloud_ResourceManager_V3_OrganizationsClient_TestIamPermissionsAsync_Google_Cloud_Iam_V1_TestIamPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_)