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 group from Okta.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = okta.group.getGroup({
name: "Example App",
});
import pulumi
import pulumi_okta as okta
example = okta.group.get_group(name="Example App")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v6/go/okta/group"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := group.LookupGroup(ctx, &group.LookupGroupArgs{
Name: pulumi.StringRef("Example App"),
}, 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.Group.GetGroup.Invoke(new()
{
Name = "Example App",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.group.GroupFunctions;
import com.pulumi.okta.group.inputs.GetGroupArgs;
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 = GroupFunctions.getGroup(GetGroupArgs.builder()
.name("Example App")
.build());
}
}
variables:
example:
fn::invoke:
function: okta:group:getGroup
arguments:
name: Example App
Using getGroup
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 getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
function getGroupOutput(args: GetGroupOutputArgs, opts?: InvokeOptions): Output<GetGroupResult>def get_group(delay_read_seconds: Optional[str] = None,
id: Optional[str] = None,
include_users: Optional[bool] = None,
name: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupResult
def get_group_output(delay_read_seconds: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
include_users: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupResult]func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput> Note: This function is named LookupGroup in the Go SDK.
public static class GetGroup
{
public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
fn::invoke:
function: okta:group/getGroup:getGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- Id string
- ID of group.
- Include
Users bool - Fetch group users, having default off cuts down on API calls.
- Name string
- Name of group.
- Type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- Delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- Id string
- ID of group.
- Include
Users bool - Fetch group users, having default off cuts down on API calls.
- Name string
- Name of group.
- Type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- delay
Read StringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- id String
- ID of group.
- include
Users Boolean - Fetch group users, having default off cuts down on API calls.
- name String
- Name of group.
- type String
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- id string
- ID of group.
- include
Users boolean - Fetch group users, having default off cuts down on API calls.
- name string
- Name of group.
- type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- delay_
read_ strseconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- id str
- ID of group.
- include_
users bool - Fetch group users, having default off cuts down on API calls.
- name str
- Name of group.
- type str
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- delay
Read StringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- id String
- ID of group.
- include
Users Boolean - Fetch group users, having default off cuts down on API calls.
- name String
- Name of group.
- type String
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
getGroup Result
The following output properties are available:
- Description string
- Description of group.
- Id string
- ID of group.
- Name string
- Name of group.
- Users List<string>
- Users associated with the group. This can also be done per user.
- Delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- Include
Users bool - Fetch group users, having default off cuts down on API calls.
- Type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- Description string
- Description of group.
- Id string
- ID of group.
- Name string
- Name of group.
- Users []string
- Users associated with the group. This can also be done per user.
- Delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- Include
Users bool - Fetch group users, having default off cuts down on API calls.
- Type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- description String
- Description of group.
- id String
- ID of group.
- name String
- Name of group.
- users List<String>
- Users associated with the group. This can also be done per user.
- delay
Read StringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- include
Users Boolean - Fetch group users, having default off cuts down on API calls.
- type String
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- description string
- Description of group.
- id string
- ID of group.
- name string
- Name of group.
- users string[]
- Users associated with the group. This can also be done per user.
- delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- include
Users boolean - Fetch group users, having default off cuts down on API calls.
- type string
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- description str
- Description of group.
- id str
- ID of group.
- name str
- Name of group.
- users Sequence[str]
- Users associated with the group. This can also be done per user.
- delay_
read_ strseconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- include_
users bool - Fetch group users, having default off cuts down on API calls.
- type str
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the group
- description String
- Description of group.
- id String
- ID of group.
- name String
- Name of group.
- users List<String>
- Users associated with the group. This can also be done per user.
- delay
Read StringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- include
Users Boolean - Fetch group users, having default off cuts down on API calls.
- type String
- Type of the group. When specified in the terraform resource, will act as a filter when searching for the 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
