authentik 2025.2.0 published on Monday, Mar 24, 2025 by goauthentik
authentik.getGroups
Explore with Pulumi AI
authentik 2025.2.0 published on Monday, Mar 24, 2025 by goauthentik
Get groups list
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as authentik from "@pulumi/authentik";
const all = authentik.getGroups({});
const admins = authentik.getGroups({
isSuperuser: true,
});
import pulumi
import pulumi_authentik as authentik
all = authentik.get_groups()
admins = authentik.get_groups(is_superuser=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/authentik/v2025/authentik"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := authentik.GetGroups(ctx, &authentik.GetGroupsArgs{}, nil)
if err != nil {
return err
}
_, err = authentik.GetGroups(ctx, &authentik.GetGroupsArgs{
IsSuperuser: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Authentik = Pulumi.Authentik;
return await Deployment.RunAsync(() =>
{
var all = Authentik.GetGroups.Invoke();
var admins = Authentik.GetGroups.Invoke(new()
{
IsSuperuser = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.authentik.AuthentikFunctions;
import com.pulumi.authentik.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 all = AuthentikFunctions.getGroups();
final var admins = AuthentikFunctions.getGroups(GetGroupsArgs.builder()
.isSuperuser(true)
.build());
}
}
variables:
all:
fn::invoke:
function: authentik:getGroups
arguments: {}
admins:
fn::invoke:
function: authentik:getGroups
arguments:
isSuperuser: true
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(attributes: Optional[str] = None,
id: Optional[str] = None,
include_users: Optional[bool] = None,
is_superuser: Optional[bool] = None,
members_by_pks: Optional[Sequence[float]] = None,
members_by_usernames: Optional[Sequence[str]] = None,
name: Optional[str] = None,
ordering: Optional[str] = None,
search: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupsResult
def get_groups_output(attributes: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
include_users: Optional[pulumi.Input[bool]] = None,
is_superuser: Optional[pulumi.Input[bool]] = None,
members_by_pks: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
members_by_usernames: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
ordering: Optional[pulumi.Input[str]] = None,
search: 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: authentik:index/getGroups:getGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Attributes string
- Id string
- The ID of this resource.
- Include
Users bool - Is
Superuser bool - Members
By List<double>Pks - Members
By List<string>Usernames - Name string
- Ordering string
- Search string
- Attributes string
- Id string
- The ID of this resource.
- Include
Users bool - Is
Superuser bool - Members
By []float64Pks - Members
By []stringUsernames - Name string
- Ordering string
- Search string
- attributes String
- id String
- The ID of this resource.
- include
Users Boolean - is
Superuser Boolean - members
By List<Double>Pks - members
By List<String>Usernames - name String
- ordering String
- search String
- attributes string
- id string
- The ID of this resource.
- include
Users boolean - is
Superuser boolean - members
By number[]Pks - members
By string[]Usernames - name string
- ordering string
- search string
- attributes str
- id str
- The ID of this resource.
- include_
users bool - is_
superuser bool - members_
by_ Sequence[float]pks - members_
by_ Sequence[str]usernames - name str
- ordering str
- search str
- attributes String
- id String
- The ID of this resource.
- include
Users Boolean - is
Superuser Boolean - members
By List<Number>Pks - members
By List<String>Usernames - name String
- ordering String
- search String
getGroups Result
The following output properties are available:
- Groups
List<Get
Groups Group> - Generated.
- Id string
- The ID of this resource.
- Attributes string
- Include
Users bool - Is
Superuser bool - Members
By List<double>Pks - Members
By List<string>Usernames - Name string
- Ordering string
- Search string
- Groups
[]Get
Groups Group - Generated.
- Id string
- The ID of this resource.
- Attributes string
- Include
Users bool - Is
Superuser bool - Members
By []float64Pks - Members
By []stringUsernames - Name string
- Ordering string
- Search string
- groups
List<Get
Groups Group> - Generated.
- id String
- The ID of this resource.
- attributes String
- include
Users Boolean - is
Superuser Boolean - members
By List<Double>Pks - members
By List<String>Usernames - name String
- ordering String
- search String
- groups
Get
Groups Group[] - Generated.
- id string
- The ID of this resource.
- attributes string
- include
Users boolean - is
Superuser boolean - members
By number[]Pks - members
By string[]Usernames - name string
- ordering string
- search string
- groups
Sequence[Get
Groups Group] - Generated.
- id str
- The ID of this resource.
- attributes str
- include_
users bool - is_
superuser bool - members_
by_ Sequence[float]pks - members_
by_ Sequence[str]usernames - name str
- ordering str
- search str
- groups List<Property Map>
- Generated.
- id String
- The ID of this resource.
- attributes String
- include
Users Boolean - is
Superuser Boolean - members
By List<Number>Pks - members
By List<String>Usernames - name String
- ordering String
- search String
Supporting Types
GetGroupsGroup
- Attributes
This property is required. string - Is
Superuser This property is required. bool - Name
This property is required. string - Num
Pk This property is required. double - Parent
This property is required. string - Parent
Name This property is required. string - Pk
This property is required. string - Users
This property is required. List<double> - Users
Objs This property is required. List<GetGroups Group Users Obj>
- Attributes
This property is required. string - Is
Superuser This property is required. bool - Name
This property is required. string - Num
Pk This property is required. float64 - Parent
This property is required. string - Parent
Name This property is required. string - Pk
This property is required. string - Users
This property is required. []float64 - Users
Objs This property is required. []GetGroups Group Users Obj
- attributes
This property is required. String - is
Superuser This property is required. Boolean - name
This property is required. String - num
Pk This property is required. Double - parent
This property is required. String - parent
Name This property is required. String - pk
This property is required. String - users
This property is required. List<Double> - users
Objs This property is required. List<GetGroups Group Users Obj>
- attributes
This property is required. string - is
Superuser This property is required. boolean - name
This property is required. string - num
Pk This property is required. number - parent
This property is required. string - parent
Name This property is required. string - pk
This property is required. string - users
This property is required. number[] - users
Objs This property is required. GetGroups Group Users Obj[]
- attributes
This property is required. str - is_
superuser This property is required. bool - name
This property is required. str - num_
pk This property is required. float - parent
This property is required. str - parent_
name This property is required. str - pk
This property is required. str - users
This property is required. Sequence[float] - users_
objs This property is required. Sequence[GetGroups Group Users Obj]
- attributes
This property is required. String - is
Superuser This property is required. Boolean - name
This property is required. String - num
Pk This property is required. Number - parent
This property is required. String - parent
Name This property is required. String - pk
This property is required. String - users
This property is required. List<Number> - users
Objs This property is required. List<Property Map>
GetGroupsGroupUsersObj
- Attributes
This property is required. string - Email
This property is required. string - Is
Active This property is required. bool - Last
Login This property is required. string - Name
This property is required. string - Pk
This property is required. double - Uid
This property is required. string - Username
This property is required. string
- Attributes
This property is required. string - Email
This property is required. string - Is
Active This property is required. bool - Last
Login This property is required. string - Name
This property is required. string - Pk
This property is required. float64 - Uid
This property is required. string - Username
This property is required. string
- attributes
This property is required. String - email
This property is required. String - is
Active This property is required. Boolean - last
Login This property is required. String - name
This property is required. String - pk
This property is required. Double - uid
This property is required. String - username
This property is required. String
- attributes
This property is required. string - email
This property is required. string - is
Active This property is required. boolean - last
Login This property is required. string - name
This property is required. string - pk
This property is required. number - uid
This property is required. string - username
This property is required. string
- attributes
This property is required. str - email
This property is required. str - is_
active This property is required. bool - last_
login This property is required. str - name
This property is required. str - pk
This property is required. float - uid
This property is required. str - username
This property is required. str
- attributes
This property is required. String - email
This property is required. String - is
Active This property is required. Boolean - last
Login This property is required. String - name
This property is required. String - pk
This property is required. Number - uid
This property is required. String - username
This property is required. String
Package Details
- Repository
- authentik goauthentik/terraform-provider-authentik
- License
- Notes
- This Pulumi package is based on the
authentik
Terraform Provider.
authentik 2025.2.0 published on Monday, Mar 24, 2025 by goauthentik