1. Packages
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. getOrgGroupPolicyOverrides
Viewing docs for Datadog v5.3.0
published on Friday, May 22, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.3.0
published on Friday, May 22, 2026 by Pulumi

    Use this data source to retrieve org group policy overrides. Supports filtering by policy ID (server-side) and organization UUID (client-side).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // List every override attached to the given org group. Useful for discovering
    // overrides auto-created by the server in response to membership or policy events.
    const all = datadog.getOrgGroupPolicyOverrides({
        orgGroupId: "019d97e8-74d4-7060-806e-e731c8f1d005",
    });
    // Scope the search to a single policy and/or organization. org_uuid is a
    // client-side filter since the API does not natively support it.
    const forOrg = datadog.getOrgGroupPolicyOverrides({
        orgGroupId: "019d97e8-74d4-7060-806e-e731c8f1d005",
        policyId: "019d97e9-f340-78c1-aa50-6a953c2bd006",
        orgUuid: "ff4a8255-6931-58d1-add0-a6b3602d5421",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # List every override attached to the given org group. Useful for discovering
    # overrides auto-created by the server in response to membership or policy events.
    all = datadog.get_org_group_policy_overrides(org_group_id="019d97e8-74d4-7060-806e-e731c8f1d005")
    # Scope the search to a single policy and/or organization. org_uuid is a
    # client-side filter since the API does not natively support it.
    for_org = datadog.get_org_group_policy_overrides(org_group_id="019d97e8-74d4-7060-806e-e731c8f1d005",
        policy_id="019d97e9-f340-78c1-aa50-6a953c2bd006",
        org_uuid="ff4a8255-6931-58d1-add0-a6b3602d5421")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// List every override attached to the given org group. Useful for discovering
    		// overrides auto-created by the server in response to membership or policy events.
    		_, err := datadog.GetOrgGroupPolicyOverrides(ctx, &datadog.GetOrgGroupPolicyOverridesArgs{
    			OrgGroupId: "019d97e8-74d4-7060-806e-e731c8f1d005",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Scope the search to a single policy and/or organization. org_uuid is a
    		// client-side filter since the API does not natively support it.
    		_, err = datadog.GetOrgGroupPolicyOverrides(ctx, &datadog.GetOrgGroupPolicyOverridesArgs{
    			OrgGroupId: "019d97e8-74d4-7060-806e-e731c8f1d005",
    			PolicyId:   pulumi.StringRef("019d97e9-f340-78c1-aa50-6a953c2bd006"),
    			OrgUuid:    pulumi.StringRef("ff4a8255-6931-58d1-add0-a6b3602d5421"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // List every override attached to the given org group. Useful for discovering
        // overrides auto-created by the server in response to membership or policy events.
        var all = Datadog.GetOrgGroupPolicyOverrides.Invoke(new()
        {
            OrgGroupId = "019d97e8-74d4-7060-806e-e731c8f1d005",
        });
    
        // Scope the search to a single policy and/or organization. org_uuid is a
        // client-side filter since the API does not natively support it.
        var forOrg = Datadog.GetOrgGroupPolicyOverrides.Invoke(new()
        {
            OrgGroupId = "019d97e8-74d4-7060-806e-e731c8f1d005",
            PolicyId = "019d97e9-f340-78c1-aa50-6a953c2bd006",
            OrgUuid = "ff4a8255-6931-58d1-add0-a6b3602d5421",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.DatadogFunctions;
    import com.pulumi.datadog.inputs.GetOrgGroupPolicyOverridesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // List every override attached to the given org group. Useful for discovering
            // overrides auto-created by the server in response to membership or policy events.
            final var all = DatadogFunctions.getOrgGroupPolicyOverrides(GetOrgGroupPolicyOverridesArgs.builder()
                .orgGroupId("019d97e8-74d4-7060-806e-e731c8f1d005")
                .build());
    
            // Scope the search to a single policy and/or organization. org_uuid is a
            // client-side filter since the API does not natively support it.
            final var forOrg = DatadogFunctions.getOrgGroupPolicyOverrides(GetOrgGroupPolicyOverridesArgs.builder()
                .orgGroupId("019d97e8-74d4-7060-806e-e731c8f1d005")
                .policyId("019d97e9-f340-78c1-aa50-6a953c2bd006")
                .orgUuid("ff4a8255-6931-58d1-add0-a6b3602d5421")
                .build());
    
        }
    }
    
    variables:
      # List every override attached to the given org group. Useful for discovering
      # overrides auto-created by the server in response to membership or policy events.
      all:
        fn::invoke:
          function: datadog:getOrgGroupPolicyOverrides
          arguments:
            orgGroupId: 019d97e8-74d4-7060-806e-e731c8f1d005
      # Scope the search to a single policy and/or organization. org_uuid is a
      # client-side filter since the API does not natively support it.
      forOrg:
        fn::invoke:
          function: datadog:getOrgGroupPolicyOverrides
          arguments:
            orgGroupId: 019d97e8-74d4-7060-806e-e731c8f1d005
            policyId: 019d97e9-f340-78c1-aa50-6a953c2bd006
            orgUuid: ff4a8255-6931-58d1-add0-a6b3602d5421
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    data "datadog_getorggrouppolicyoverrides" "all" {
      org_group_id = "019d97e8-74d4-7060-806e-e731c8f1d005"
    }
    data "datadog_getorggrouppolicyoverrides" "forOrg" {
      org_group_id = "019d97e8-74d4-7060-806e-e731c8f1d005"
      policy_id    = "019d97e9-f340-78c1-aa50-6a953c2bd006"
      org_uuid     = "ff4a8255-6931-58d1-add0-a6b3602d5421"
    }
    
    # List every override attached to the given org group. Useful for discovering
    # overrides auto-created by the server in response to membership or policy events.
    # Scope the search to a single policy and/or organization. org_uuid is a
    # client-side filter since the API does not natively support it.
    

    Using getOrgGroupPolicyOverrides

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getOrgGroupPolicyOverrides(args: GetOrgGroupPolicyOverridesArgs, opts?: InvokeOptions): Promise<GetOrgGroupPolicyOverridesResult>
    function getOrgGroupPolicyOverridesOutput(args: GetOrgGroupPolicyOverridesOutputArgs, opts?: InvokeOptions): Output<GetOrgGroupPolicyOverridesResult>
    def get_org_group_policy_overrides(org_group_id: Optional[str] = None,
                                       org_uuid: Optional[str] = None,
                                       policy_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetOrgGroupPolicyOverridesResult
    def get_org_group_policy_overrides_output(org_group_id: pulumi.Input[Optional[str]] = None,
                                       org_uuid: pulumi.Input[Optional[str]] = None,
                                       policy_id: pulumi.Input[Optional[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetOrgGroupPolicyOverridesResult]
    func GetOrgGroupPolicyOverrides(ctx *Context, args *GetOrgGroupPolicyOverridesArgs, opts ...InvokeOption) (*GetOrgGroupPolicyOverridesResult, error)
    func GetOrgGroupPolicyOverridesOutput(ctx *Context, args *GetOrgGroupPolicyOverridesOutputArgs, opts ...InvokeOption) GetOrgGroupPolicyOverridesResultOutput

    > Note: This function is named GetOrgGroupPolicyOverrides in the Go SDK.

    public static class GetOrgGroupPolicyOverrides 
    {
        public static Task<GetOrgGroupPolicyOverridesResult> InvokeAsync(GetOrgGroupPolicyOverridesArgs args, InvokeOptions? opts = null)
        public static Output<GetOrgGroupPolicyOverridesResult> Invoke(GetOrgGroupPolicyOverridesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrgGroupPolicyOverridesResult> getOrgGroupPolicyOverrides(GetOrgGroupPolicyOverridesArgs args, InvokeOptions options)
    public static Output<GetOrgGroupPolicyOverridesResult> getOrgGroupPolicyOverrides(GetOrgGroupPolicyOverridesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datadog:index/getOrgGroupPolicyOverrides:getOrgGroupPolicyOverrides
      arguments:
        # arguments dictionary
    data "datadog_getorggrouppolicyoverrides" "name" {
        # arguments
    }

    The following arguments are supported:

    OrgGroupId string
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    OrgUuid string
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    PolicyId string
    Filter overrides to those on the given policy. Must be a valid UUID.
    OrgGroupId string
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    OrgUuid string
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    PolicyId string
    Filter overrides to those on the given policy. Must be a valid UUID.
    org_group_id string
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    org_uuid string
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policy_id string
    Filter overrides to those on the given policy. Must be a valid UUID.
    orgGroupId String
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    orgUuid String
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policyId String
    Filter overrides to those on the given policy. Must be a valid UUID.
    orgGroupId string
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    orgUuid string
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policyId string
    Filter overrides to those on the given policy. Must be a valid UUID.
    org_group_id str
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    org_uuid str
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policy_id str
    Filter overrides to those on the given policy. Must be a valid UUID.
    orgGroupId String
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    orgUuid String
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policyId String
    Filter overrides to those on the given policy. Must be a valid UUID.

    getOrgGroupPolicyOverrides Result

    The following output properties are available:

    Id string
    The ID of this resource.
    OrgGroupId string
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    Overrides List<GetOrgGroupPolicyOverridesOverride>
    The list of policy overrides.
    OrgUuid string
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    PolicyId string
    Filter overrides to those on the given policy. Must be a valid UUID.
    Id string
    The ID of this resource.
    OrgGroupId string
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    Overrides []GetOrgGroupPolicyOverridesOverride
    The list of policy overrides.
    OrgUuid string
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    PolicyId string
    Filter overrides to those on the given policy. Must be a valid UUID.
    id string
    The ID of this resource.
    org_group_id string
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    overrides list(object)
    The list of policy overrides.
    org_uuid string
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policy_id string
    Filter overrides to those on the given policy. Must be a valid UUID.
    id String
    The ID of this resource.
    orgGroupId String
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    overrides List<GetOrgGroupPolicyOverridesOverride>
    The list of policy overrides.
    orgUuid String
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policyId String
    Filter overrides to those on the given policy. Must be a valid UUID.
    id string
    The ID of this resource.
    orgGroupId string
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    overrides GetOrgGroupPolicyOverridesOverride[]
    The list of policy overrides.
    orgUuid string
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policyId string
    Filter overrides to those on the given policy. Must be a valid UUID.
    id str
    The ID of this resource.
    org_group_id str
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    overrides Sequence[GetOrgGroupPolicyOverridesOverride]
    The list of policy overrides.
    org_uuid str
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policy_id str
    Filter overrides to those on the given policy. Must be a valid UUID.
    id String
    The ID of this resource.
    orgGroupId String
    The UUID of the org group whose overrides to list. Must be a valid UUID.
    overrides List<Property Map>
    The list of policy overrides.
    orgUuid String
    Filter overrides to those for the given organization. Applied client-side after the List call because the API does not accept an orgUuid filter on this endpoint. Must be a valid UUID.
    policyId String
    Filter overrides to those on the given policy. Must be a valid UUID.

    Supporting Types

    GetOrgGroupPolicyOverridesOverride

    Content string
    Id string
    OrgGroupId string
    OrgSite string
    OrgUuid string
    PolicyId string
    Content string
    Id string
    OrgGroupId string
    OrgSite string
    OrgUuid string
    PolicyId string
    content string
    id string
    org_group_id string
    org_site string
    org_uuid string
    policy_id string
    content String
    id String
    orgGroupId String
    orgSite String
    orgUuid String
    policyId String
    content string
    id string
    orgGroupId string
    orgSite string
    orgUuid string
    policyId string
    content String
    id String
    orgGroupId String
    orgSite String
    orgUuid String
    policyId String

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Viewing docs for Datadog v5.3.0
    published on Friday, May 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial