1. Packages
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. getOrganizationRoleScopes

This provider is currently in preview.

Viewing docs for Pulumi Cloud v0.39.0
published on Tuesday, Apr 28, 2026 by Pulumi
pulumiservice logo

This provider is currently in preview.

Viewing docs for Pulumi Cloud v0.39.0
published on Tuesday, Apr 28, 2026 by Pulumi

    Lists the permission scopes available for custom roles in an organization. Use this to discover valid scope names before setting OrganizationRole.permissions. The catalogue is flattened into a single list with resource type and group context, sorted deterministically.

    Using getOrganizationRoleScopes

    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 getOrganizationRoleScopes(args: GetOrganizationRoleScopesArgs, opts?: InvokeOptions): Promise<GetOrganizationRoleScopesResult>
    function getOrganizationRoleScopesOutput(args: GetOrganizationRoleScopesOutputArgs, opts?: InvokeOptions): Output<GetOrganizationRoleScopesResult>
    def get_organization_role_scopes(organization_name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetOrganizationRoleScopesResult
    def get_organization_role_scopes_output(organization_name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationRoleScopesResult]
    func GetOrganizationRoleScopes(ctx *Context, args *GetOrganizationRoleScopesArgs, opts ...InvokeOption) (*GetOrganizationRoleScopesResult, error)
    func GetOrganizationRoleScopesOutput(ctx *Context, args *GetOrganizationRoleScopesOutputArgs, opts ...InvokeOption) GetOrganizationRoleScopesResultOutput

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

    public static class GetOrganizationRoleScopes 
    {
        public static Task<GetOrganizationRoleScopesResult> InvokeAsync(GetOrganizationRoleScopesArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationRoleScopesResult> Invoke(GetOrganizationRoleScopesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrganizationRoleScopesResult> getOrganizationRoleScopes(GetOrganizationRoleScopesArgs args, InvokeOptions options)
    public static Output<GetOrganizationRoleScopesResult> getOrganizationRoleScopes(GetOrganizationRoleScopesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: pulumiservice:getOrganizationRoleScopes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrganizationName string
    The Pulumi Cloud organization name.
    OrganizationName string
    The Pulumi Cloud organization name.
    organizationName String
    The Pulumi Cloud organization name.
    organizationName string
    The Pulumi Cloud organization name.
    organization_name str
    The Pulumi Cloud organization name.
    organizationName String
    The Pulumi Cloud organization name.

    getOrganizationRoleScopes Result

    The following output properties are available:

    Supporting Types

    RoleScopeInfo

    Description string
    Human-readable description of what the scope grants.
    GroupName string
    The scope group label as shown in the Pulumi Cloud console (e.g. Stacks).
    Name string
    The scope name (e.g. stack:read).
    ResourceType string
    The resource-type bucket the scope belongs to (e.g. stack, team).
    Description string
    Human-readable description of what the scope grants.
    GroupName string
    The scope group label as shown in the Pulumi Cloud console (e.g. Stacks).
    Name string
    The scope name (e.g. stack:read).
    ResourceType string
    The resource-type bucket the scope belongs to (e.g. stack, team).
    description String
    Human-readable description of what the scope grants.
    groupName String
    The scope group label as shown in the Pulumi Cloud console (e.g. Stacks).
    name String
    The scope name (e.g. stack:read).
    resourceType String
    The resource-type bucket the scope belongs to (e.g. stack, team).
    description string
    Human-readable description of what the scope grants.
    groupName string
    The scope group label as shown in the Pulumi Cloud console (e.g. Stacks).
    name string
    The scope name (e.g. stack:read).
    resourceType string
    The resource-type bucket the scope belongs to (e.g. stack, team).
    description str
    Human-readable description of what the scope grants.
    group_name str
    The scope group label as shown in the Pulumi Cloud console (e.g. Stacks).
    name str
    The scope name (e.g. stack:read).
    resource_type str
    The resource-type bucket the scope belongs to (e.g. stack, team).
    description String
    Human-readable description of what the scope grants.
    groupName String
    The scope group label as shown in the Pulumi Cloud console (e.g. Stacks).
    name String
    The scope name (e.g. stack:read).
    resourceType String
    The resource-type bucket the scope belongs to (e.g. stack, team).

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo

    This provider is currently in preview.

    Viewing docs for Pulumi Cloud v0.39.0
    published on Tuesday, Apr 28, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.