1. Packages
  2. Aiven Provider
  3. API Docs
  4. getProjectUser
Aiven v6.35.0 published on Friday, Feb 21, 2025 by Pulumi

aiven.getProjectUser

Explore with Pulumi AI

Aiven v6.35.0 published on Friday, Feb 21, 2025 by Pulumi

The Project User data source provides information about the existing Aiven Project User.

This resource is deprecated Use aiven.OrganizationPermission instead and migrate existing aiven.ProjectUser resources to the new resource.

Example Usage

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

const mytestuser = aiven.getProjectUser({
    project: myproject.project,
    email: "john.doe@example.com",
});
Copy
import pulumi
import pulumi_aiven as aiven

mytestuser = aiven.get_project_user(project=myproject["project"],
    email="john.doe@example.com")
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.LookupProjectUser(ctx, &aiven.LookupProjectUserArgs{
			Project: myproject.Project,
			Email:   "john.doe@example.com",
		}, nil)
		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 mytestuser = Aiven.GetProjectUser.Invoke(new()
    {
        Project = myproject.Project,
        Email = "john.doe@example.com",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AivenFunctions;
import com.pulumi.aiven.inputs.GetProjectUserArgs;
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 mytestuser = AivenFunctions.getProjectUser(GetProjectUserArgs.builder()
            .project(myproject.project())
            .email("john.doe@example.com")
            .build());

    }
}
Copy
variables:
  mytestuser:
    fn::invoke:
      function: aiven:getProjectUser
      arguments:
        project: ${myproject.project}
        email: john.doe@example.com
Copy

Using getProjectUser

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 getProjectUser(args: GetProjectUserArgs, opts?: InvokeOptions): Promise<GetProjectUserResult>
function getProjectUserOutput(args: GetProjectUserOutputArgs, opts?: InvokeOptions): Output<GetProjectUserResult>
Copy
def get_project_user(email: Optional[str] = None,
                     project: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetProjectUserResult
def get_project_user_output(email: Optional[pulumi.Input[str]] = None,
                     project: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetProjectUserResult]
Copy
func LookupProjectUser(ctx *Context, args *LookupProjectUserArgs, opts ...InvokeOption) (*LookupProjectUserResult, error)
func LookupProjectUserOutput(ctx *Context, args *LookupProjectUserOutputArgs, opts ...InvokeOption) LookupProjectUserResultOutput
Copy

> Note: This function is named LookupProjectUser in the Go SDK.

public static class GetProjectUser 
{
    public static Task<GetProjectUserResult> InvokeAsync(GetProjectUserArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectUserResult> Invoke(GetProjectUserInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetProjectUserResult> getProjectUser(GetProjectUserArgs args, InvokeOptions options)
public static Output<GetProjectUserResult> getProjectUser(GetProjectUserArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aiven:index/getProjectUser:getProjectUser
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Email This property is required. string
Email address of the user in lowercase. Changing this property forces recreation of the resource.
Project This property is required. string
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
Email This property is required. string
Email address of the user in lowercase. Changing this property forces recreation of the resource.
Project This property is required. string
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
email This property is required. String
Email address of the user in lowercase. Changing this property forces recreation of the resource.
project This property is required. String
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
email This property is required. string
Email address of the user in lowercase. Changing this property forces recreation of the resource.
project This property is required. string
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
email This property is required. str
Email address of the user in lowercase. Changing this property forces recreation of the resource.
project This property is required. str
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
email This property is required. String
Email address of the user in lowercase. Changing this property forces recreation of the resource.
project This property is required. String
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.

getProjectUser Result

The following output properties are available:

Accepted bool
Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
Email string
Email address of the user in lowercase. Changing this property forces recreation of the resource.
Id string
The provider-assigned unique ID for this managed resource.
MemberType string
Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
Project string
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
Accepted bool
Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
Email string
Email address of the user in lowercase. Changing this property forces recreation of the resource.
Id string
The provider-assigned unique ID for this managed resource.
MemberType string
Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
Project string
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
accepted Boolean
Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
email String
Email address of the user in lowercase. Changing this property forces recreation of the resource.
id String
The provider-assigned unique ID for this managed resource.
memberType String
Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
project String
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
accepted boolean
Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
email string
Email address of the user in lowercase. Changing this property forces recreation of the resource.
id string
The provider-assigned unique ID for this managed resource.
memberType string
Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
project string
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
accepted bool
Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
email str
Email address of the user in lowercase. Changing this property forces recreation of the resource.
id str
The provider-assigned unique ID for this managed resource.
member_type str
Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
project str
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
accepted Boolean
Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
email String
Email address of the user in lowercase. Changing this property forces recreation of the resource.
id String
The provider-assigned unique ID for this managed resource.
memberType String
Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
project String
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.
Aiven v6.35.0 published on Friday, Feb 21, 2025 by Pulumi