Viewing docs for Okta v6.3.1
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for Okta v6.3.1
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Get a list of groups from Okta.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = okta.getGroups({
q: "Engineering - ",
});
import pulumi
import pulumi_okta as okta
example = okta.get_groups(q="Engineering - ")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := okta.GetGroups(ctx, &okta.GetGroupsArgs{
Q: pulumi.StringRef("Engineering - "),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = Okta.GetGroups.Invoke(new()
{
Q = "Engineering - ",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.OktaFunctions;
import com.pulumi.okta.inputs.GetGroupsArgs;
import java.util.List;
import java.util.ArrayList;
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) {
final var example = OktaFunctions.getGroups(GetGroupsArgs.builder()
.q("Engineering - ")
.build());
}
}
variables:
example:
fn::invoke:
function: okta:getGroups
arguments:
q: 'Engineering - '
Using getGroups
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 getGroups(args: GetGroupsArgs, opts?: InvokeOptions): Promise<GetGroupsResult>
function getGroupsOutput(args: GetGroupsOutputArgs, opts?: InvokeOptions): Output<GetGroupsResult>def get_groups(limit: Optional[int] = None,
q: Optional[str] = None,
search: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupsResult
def get_groups_output(limit: Optional[pulumi.Input[int]] = None,
q: Optional[pulumi.Input[str]] = None,
search: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupsResult]func GetGroups(ctx *Context, args *GetGroupsArgs, opts ...InvokeOption) (*GetGroupsResult, error)
func GetGroupsOutput(ctx *Context, args *GetGroupsOutputArgs, opts ...InvokeOption) GetGroupsResultOutput> Note: This function is named GetGroups in the Go SDK.
public static class GetGroups
{
public static Task<GetGroupsResult> InvokeAsync(GetGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetGroupsResult> Invoke(GetGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupsResult> getGroups(GetGroupsArgs args, InvokeOptions options)
public static Output<GetGroupsResult> getGroups(GetGroupsArgs args, InvokeOptions options)
fn::invoke:
function: okta:index/getGroups:getGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Limit int
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- Q string
- Searches the name property of groups for matching value
- Search string
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- Type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- Limit int
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- Q string
- Searches the name property of groups for matching value
- Search string
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- Type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- limit Integer
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- q String
- Searches the name property of groups for matching value
- search String
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- type String
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- limit number
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- q string
- Searches the name property of groups for matching value
- search string
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- limit int
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- q str
- Searches the name property of groups for matching value
- search str
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- type str
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- limit Number
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- q String
- Searches the name property of groups for matching value
- search String
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- type String
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
getGroups Result
The following output properties are available:
- Groups
List<Get
Groups Group> - Id string
- The provider-assigned unique ID for this managed resource.
- Limit int
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- Q string
- Searches the name property of groups for matching value
- Search string
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- Type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- Groups
[]Get
Groups Group - Id string
- The provider-assigned unique ID for this managed resource.
- Limit int
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- Q string
- Searches the name property of groups for matching value
- Search string
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- Type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- groups
List<Get
Groups Group> - id String
- The provider-assigned unique ID for this managed resource.
- limit Integer
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- q String
- Searches the name property of groups for matching value
- search String
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- type String
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- groups
Get
Groups Group[] - id string
- The provider-assigned unique ID for this managed resource.
- limit number
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- q string
- Searches the name property of groups for matching value
- search string
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- groups
Sequence[Get
Groups Group] - id str
- The provider-assigned unique ID for this managed resource.
- limit int
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- q str
- Searches the name property of groups for matching value
- search str
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- type str
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
- groups List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- limit Number
- The maximum number of groups returned by the Okta API, between 1 and 10000.
- q String
- Searches the name property of groups for matching value
- search String
- Searches for groups with a supported filtering expression for all attributes except for '*embedded', '*links', and 'objectClass'
- type String
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the groups
Supporting Types
GetGroupsGroup
- Custom
Profile stringAttributes - Raw JSON containing all custom profile attributes. Likely only useful on groups of type
- Description string
- Group description.
- Id string
- Group ID.
- Name string
- Group name.
- Source string
- The ID of the application the Group is sourced/imported from (only present for groups of type APP_GROUP).
- Type string
- Group type, either 'APP_GROUP' or 'OKTA_GROUP'.
- Custom
Profile stringAttributes - Raw JSON containing all custom profile attributes. Likely only useful on groups of type
- Description string
- Group description.
- Id string
- Group ID.
- Name string
- Group name.
- Source string
- The ID of the application the Group is sourced/imported from (only present for groups of type APP_GROUP).
- Type string
- Group type, either 'APP_GROUP' or 'OKTA_GROUP'.
- custom
Profile StringAttributes - Raw JSON containing all custom profile attributes. Likely only useful on groups of type
- description String
- Group description.
- id String
- Group ID.
- name String
- Group name.
- source String
- The ID of the application the Group is sourced/imported from (only present for groups of type APP_GROUP).
- type String
- Group type, either 'APP_GROUP' or 'OKTA_GROUP'.
- custom
Profile stringAttributes - Raw JSON containing all custom profile attributes. Likely only useful on groups of type
- description string
- Group description.
- id string
- Group ID.
- name string
- Group name.
- source string
- The ID of the application the Group is sourced/imported from (only present for groups of type APP_GROUP).
- type string
- Group type, either 'APP_GROUP' or 'OKTA_GROUP'.
- custom_
profile_ strattributes - Raw JSON containing all custom profile attributes. Likely only useful on groups of type
- description str
- Group description.
- id str
- Group ID.
- name str
- Group name.
- source str
- The ID of the application the Group is sourced/imported from (only present for groups of type APP_GROUP).
- type str
- Group type, either 'APP_GROUP' or 'OKTA_GROUP'.
- custom
Profile StringAttributes - Raw JSON containing all custom profile attributes. Likely only useful on groups of type
- description String
- Group description.
- id String
- Group ID.
- name String
- Group name.
- source String
- The ID of the application the Group is sourced/imported from (only present for groups of type APP_GROUP).
- type String
- Group type, either 'APP_GROUP' or 'OKTA_GROUP'.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.
Viewing docs for Okta v6.3.1
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
