Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse
aquasec.getUsers
Explore with Pulumi AI
The data source aquasec.getUsers provides a method to query all users within the Aqua users database. The fields returned from this query are detailed in the Schema section below.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumi/aquasec";
const users = aquasec.getUsers({});
export const firstUserName = users.then(users => users.users?.[0]?.name);
import pulumi
import pulumi_aquasec as aquasec
users = aquasec.get_users()
pulumi.export("firstUserName", users.users[0].name)
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-aquasec/sdk/go/aquasec"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		users, err := aquasec.GetUsers(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstUserName", users.Users[0].Name)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aquasec = Pulumi.Aquasec;
return await Deployment.RunAsync(() => 
{
    var users = Aquasec.GetUsers.Invoke();
    return new Dictionary<string, object?>
    {
        ["firstUserName"] = users.Apply(getUsersResult => getUsersResult.Users[0]?.Name),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.AquasecFunctions;
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 users = AquasecFunctions.getUsers();
        ctx.export("firstUserName", users.applyValue(getUsersResult -> getUsersResult.users()[0].name()));
    }
}
variables:
  users:
    fn::invoke:
      Function: aquasec:getUsers
      Arguments: {}
outputs:
  firstUserName: ${users.users[0].name}
Using getUsers
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 getUsers(opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(opts?: InvokeOptions): Output<GetUsersResult>def get_users(opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]func GetUsers(ctx *Context, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, opts ...InvokeOption) GetUsersResultOutput> Note: This function is named GetUsers in the Go SDK.
public static class GetUsers 
{
    public static Task<GetUsersResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetUsersResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetUsersResult> getUsers(InvokeOptions options)
public static Output<GetUsersResult> getUsers(InvokeOptions options)
fn::invoke:
  function: aquasec:index/getUsers:getUsers
  arguments:
    # arguments dictionarygetUsers Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Users
List<Pulumiverse.
Aquasec. Outputs. Get Users User>  
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Users
[]Get
Users User  
- id String
 - The provider-assigned unique ID for this managed resource.
 - users
List<Get
Users User>  
- id string
 - The provider-assigned unique ID for this managed resource.
 - users
Get
Users User[]  
- id str
 - The provider-assigned unique ID for this managed resource.
 - users
Sequence[Get
Users User]  
- id String
 - The provider-assigned unique ID for this managed resource.
 - users List<Property Map>
 
Supporting Types
GetUsersUser  
- Email string
 - The user Email.
 - First
Time bool - If the user must change password at next login.
 - Is
Super bool - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - Name string
 - The user name.
 - Plan string
 - User's Aqua plan (Developer / Team / Advanced).
 - Role string
 - The first role that assigned to the user for backward compatibility.
 - Roles List<string>
 - The roles that will be assigned to the user.
 - Type string
 - The user type (Aqua, LDAP, SAML, OAuth2, OpenID, Tenant Manager).
 - Ui
Access bool - Whether to allow UI access for users with this Permission Set.
 - User
Id string - The user ID.
 
- Email string
 - The user Email.
 - First
Time bool - If the user must change password at next login.
 - Is
Super bool - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - Name string
 - The user name.
 - Plan string
 - User's Aqua plan (Developer / Team / Advanced).
 - Role string
 - The first role that assigned to the user for backward compatibility.
 - Roles []string
 - The roles that will be assigned to the user.
 - Type string
 - The user type (Aqua, LDAP, SAML, OAuth2, OpenID, Tenant Manager).
 - Ui
Access bool - Whether to allow UI access for users with this Permission Set.
 - User
Id string - The user ID.
 
- email String
 - The user Email.
 - first
Time Boolean - If the user must change password at next login.
 - is
Super Boolean - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - name String
 - The user name.
 - plan String
 - User's Aqua plan (Developer / Team / Advanced).
 - role String
 - The first role that assigned to the user for backward compatibility.
 - roles List<String>
 - The roles that will be assigned to the user.
 - type String
 - The user type (Aqua, LDAP, SAML, OAuth2, OpenID, Tenant Manager).
 - ui
Access Boolean - Whether to allow UI access for users with this Permission Set.
 - user
Id String - The user ID.
 
- email string
 - The user Email.
 - first
Time boolean - If the user must change password at next login.
 - is
Super boolean - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - name string
 - The user name.
 - plan string
 - User's Aqua plan (Developer / Team / Advanced).
 - role string
 - The first role that assigned to the user for backward compatibility.
 - roles string[]
 - The roles that will be assigned to the user.
 - type string
 - The user type (Aqua, LDAP, SAML, OAuth2, OpenID, Tenant Manager).
 - ui
Access boolean - Whether to allow UI access for users with this Permission Set.
 - user
Id string - The user ID.
 
- email str
 - The user Email.
 - first_
time bool - If the user must change password at next login.
 - is_
super bool - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - name str
 - The user name.
 - plan str
 - User's Aqua plan (Developer / Team / Advanced).
 - role str
 - The first role that assigned to the user for backward compatibility.
 - roles Sequence[str]
 - The roles that will be assigned to the user.
 - type str
 - The user type (Aqua, LDAP, SAML, OAuth2, OpenID, Tenant Manager).
 - ui_
access bool - Whether to allow UI access for users with this Permission Set.
 - user_
id str - The user ID.
 
- email String
 - The user Email.
 - first
Time Boolean - If the user must change password at next login.
 - is
Super Boolean - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - name String
 - The user name.
 - plan String
 - User's Aqua plan (Developer / Team / Advanced).
 - role String
 - The first role that assigned to the user for backward compatibility.
 - roles List<String>
 - The roles that will be assigned to the user.
 - type String
 - The user type (Aqua, LDAP, SAML, OAuth2, OpenID, Tenant Manager).
 - ui
Access Boolean - Whether to allow UI access for users with this Permission Set.
 - user
Id String - The user ID.
 
Package Details
- Repository
 - aquasec pulumiverse/pulumi-aquasec
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
aquasecTerraform Provider.