1. Packages
  2. Aiven Provider
  3. API Docs
  4. OrganizationApplicationUser
Aiven v6.37.0 published on Thursday, Apr 10, 2025 by Pulumi

aiven.OrganizationApplicationUser

Explore with Pulumi AI

Creates and manages an organization application user. Application users can be used for programmatic access to the platform using a token created with the aiven.OrganizationApplicationUserToken resource.

You give application users access to your organization, projects, and services using the aiven.OrganizationPermission resource. You can also add application users to groups using the aiven.OrganizationUserGroupMember resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const tfUser = new aiven.OrganizationApplicationUser("tf_user", {
    organizationId: main.id,
    name: "app-terraform",
});
Copy
import pulumi
import pulumi_aiven as aiven

tf_user = aiven.OrganizationApplicationUser("tf_user",
    organization_id=main["id"],
    name="app-terraform")
Copy
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.NewOrganizationApplicationUser(ctx, "tf_user", &aiven.OrganizationApplicationUserArgs{
			OrganizationId: pulumi.Any(main.Id),
			Name:           pulumi.String("app-terraform"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var tfUser = new Aiven.OrganizationApplicationUser("tf_user", new()
    {
        OrganizationId = main.Id,
        Name = "app-terraform",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.OrganizationApplicationUser;
import com.pulumi.aiven.OrganizationApplicationUserArgs;
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) {
        var tfUser = new OrganizationApplicationUser("tfUser", OrganizationApplicationUserArgs.builder()
            .organizationId(main.id())
            .name("app-terraform")
            .build());

    }
}
Copy
resources:
  tfUser:
    type: aiven:OrganizationApplicationUser
    name: tf_user
    properties:
      organizationId: ${main.id}
      name: app-terraform
Copy

Create OrganizationApplicationUser Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new OrganizationApplicationUser(name: string, args: OrganizationApplicationUserArgs, opts?: CustomResourceOptions);
@overload
def OrganizationApplicationUser(resource_name: str,
                                args: OrganizationApplicationUserArgs,
                                opts: Optional[ResourceOptions] = None)

@overload
def OrganizationApplicationUser(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                organization_id: Optional[str] = None,
                                is_super_admin: Optional[bool] = None,
                                name: Optional[str] = None)
func NewOrganizationApplicationUser(ctx *Context, name string, args OrganizationApplicationUserArgs, opts ...ResourceOption) (*OrganizationApplicationUser, error)
public OrganizationApplicationUser(string name, OrganizationApplicationUserArgs args, CustomResourceOptions? opts = null)
public OrganizationApplicationUser(String name, OrganizationApplicationUserArgs args)
public OrganizationApplicationUser(String name, OrganizationApplicationUserArgs args, CustomResourceOptions options)
type: aiven:OrganizationApplicationUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OrganizationApplicationUserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OrganizationApplicationUserArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationApplicationUserArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationApplicationUserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OrganizationApplicationUserArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var organizationApplicationUserResource = new Aiven.OrganizationApplicationUser("organizationApplicationUserResource", new()
{
    OrganizationId = "string",
    IsSuperAdmin = false,
    Name = "string",
});
Copy
example, err := aiven.NewOrganizationApplicationUser(ctx, "organizationApplicationUserResource", &aiven.OrganizationApplicationUserArgs{
	OrganizationId: pulumi.String("string"),
	IsSuperAdmin:   pulumi.Bool(false),
	Name:           pulumi.String("string"),
})
Copy
var organizationApplicationUserResource = new OrganizationApplicationUser("organizationApplicationUserResource", OrganizationApplicationUserArgs.builder()
    .organizationId("string")
    .isSuperAdmin(false)
    .name("string")
    .build());
Copy
organization_application_user_resource = aiven.OrganizationApplicationUser("organizationApplicationUserResource",
    organization_id="string",
    is_super_admin=False,
    name="string")
Copy
const organizationApplicationUserResource = new aiven.OrganizationApplicationUser("organizationApplicationUserResource", {
    organizationId: "string",
    isSuperAdmin: false,
    name: "string",
});
Copy
type: aiven:OrganizationApplicationUser
properties:
    isSuperAdmin: false
    name: string
    organizationId: string
Copy

OrganizationApplicationUser Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The OrganizationApplicationUser resource accepts the following input properties:

OrganizationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the organization the application user belongs to.
IsSuperAdmin bool
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
Name string
Name of the application user.
OrganizationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the organization the application user belongs to.
IsSuperAdmin bool
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
Name string
Name of the application user.
organizationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the organization the application user belongs to.
isSuperAdmin Boolean
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
name String
Name of the application user.
organizationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the organization the application user belongs to.
isSuperAdmin boolean
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
name string
Name of the application user.
organization_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the organization the application user belongs to.
is_super_admin bool
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
name str
Name of the application user.
organizationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the organization the application user belongs to.
isSuperAdmin Boolean
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
name String
Name of the application user.

Outputs

All input properties are implicitly available as output properties. Additionally, the OrganizationApplicationUser resource produces the following output properties:

Email string
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
Id string
The provider-assigned unique ID for this managed resource.
UserId string
The ID of the application user.
Email string
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
Id string
The provider-assigned unique ID for this managed resource.
UserId string
The ID of the application user.
email String
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
id String
The provider-assigned unique ID for this managed resource.
userId String
The ID of the application user.
email string
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
id string
The provider-assigned unique ID for this managed resource.
userId string
The ID of the application user.
email str
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
id str
The provider-assigned unique ID for this managed resource.
user_id str
The ID of the application user.
email String
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
id String
The provider-assigned unique ID for this managed resource.
userId String
The ID of the application user.

Look up Existing OrganizationApplicationUser Resource

Get an existing OrganizationApplicationUser resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: OrganizationApplicationUserState, opts?: CustomResourceOptions): OrganizationApplicationUser
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        email: Optional[str] = None,
        is_super_admin: Optional[bool] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        user_id: Optional[str] = None) -> OrganizationApplicationUser
func GetOrganizationApplicationUser(ctx *Context, name string, id IDInput, state *OrganizationApplicationUserState, opts ...ResourceOption) (*OrganizationApplicationUser, error)
public static OrganizationApplicationUser Get(string name, Input<string> id, OrganizationApplicationUserState? state, CustomResourceOptions? opts = null)
public static OrganizationApplicationUser get(String name, Output<String> id, OrganizationApplicationUserState state, CustomResourceOptions options)
resources:  _:    type: aiven:OrganizationApplicationUser    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Email string
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
IsSuperAdmin bool
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
Name string
Name of the application user.
OrganizationId Changes to this property will trigger replacement. string
The ID of the organization the application user belongs to.
UserId string
The ID of the application user.
Email string
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
IsSuperAdmin bool
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
Name string
Name of the application user.
OrganizationId Changes to this property will trigger replacement. string
The ID of the organization the application user belongs to.
UserId string
The ID of the application user.
email String
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
isSuperAdmin Boolean
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
name String
Name of the application user.
organizationId Changes to this property will trigger replacement. String
The ID of the organization the application user belongs to.
userId String
The ID of the application user.
email string
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
isSuperAdmin boolean
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
name string
Name of the application user.
organizationId Changes to this property will trigger replacement. string
The ID of the organization the application user belongs to.
userId string
The ID of the application user.
email str
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
is_super_admin bool
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
name str
Name of the application user.
organization_id Changes to this property will trigger replacement. str
The ID of the organization the application user belongs to.
user_id str
The ID of the application user.
email String
An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
isSuperAdmin Boolean
Makes the application user a super admin. The super admin role has completely unrestricted access to all organization resources and settings. This role should be limited to as few users as possible. For daily administrative tasks, assign users the organization admin role instead using the aiven.OrganizationPermission resource.
name String
Name of the application user.
organizationId Changes to this property will trigger replacement. String
The ID of the organization the application user belongs to.
userId String
The ID of the application user.

Import

$ pulumi import aiven:index/organizationApplicationUser:OrganizationApplicationUser example ORGANIZATION_ID/USER_ID
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.