ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getAppidCloudDirectoryUser
Explore with Pulumi AI
Retrieve information about an IBM Cloud AppID Management Services Cloud Directory User. For more information, see managing users
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const user = ibm.getAppidCloudDirectoryUser({
    tenantId: _var.tenant_id,
    userId: _var.user_id,
});
import pulumi
import pulumi_ibm as ibm
user = ibm.get_appid_cloud_directory_user(tenant_id=var["tenant_id"],
    user_id=var["user_id"])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.LookupAppidCloudDirectoryUser(ctx, &ibm.LookupAppidCloudDirectoryUserArgs{
			TenantId: _var.Tenant_id,
			UserId:   _var.User_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() => 
{
    var user = Ibm.GetAppidCloudDirectoryUser.Invoke(new()
    {
        TenantId = @var.Tenant_id,
        UserId = @var.User_id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetAppidCloudDirectoryUserArgs;
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 user = IbmFunctions.getAppidCloudDirectoryUser(GetAppidCloudDirectoryUserArgs.builder()
            .tenantId(var_.tenant_id())
            .userId(var_.user_id())
            .build());
    }
}
variables:
  user:
    fn::invoke:
      function: ibm:getAppidCloudDirectoryUser
      arguments:
        tenantId: ${var.tenant_id}
        userId: ${var.user_id}
Using getAppidCloudDirectoryUser
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 getAppidCloudDirectoryUser(args: GetAppidCloudDirectoryUserArgs, opts?: InvokeOptions): Promise<GetAppidCloudDirectoryUserResult>
function getAppidCloudDirectoryUserOutput(args: GetAppidCloudDirectoryUserOutputArgs, opts?: InvokeOptions): Output<GetAppidCloudDirectoryUserResult>def get_appid_cloud_directory_user(id: Optional[str] = None,
                                   tenant_id: Optional[str] = None,
                                   user_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAppidCloudDirectoryUserResult
def get_appid_cloud_directory_user_output(id: Optional[pulumi.Input[str]] = None,
                                   tenant_id: Optional[pulumi.Input[str]] = None,
                                   user_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAppidCloudDirectoryUserResult]func LookupAppidCloudDirectoryUser(ctx *Context, args *LookupAppidCloudDirectoryUserArgs, opts ...InvokeOption) (*LookupAppidCloudDirectoryUserResult, error)
func LookupAppidCloudDirectoryUserOutput(ctx *Context, args *LookupAppidCloudDirectoryUserOutputArgs, opts ...InvokeOption) LookupAppidCloudDirectoryUserResultOutput> Note: This function is named LookupAppidCloudDirectoryUser in the Go SDK.
public static class GetAppidCloudDirectoryUser 
{
    public static Task<GetAppidCloudDirectoryUserResult> InvokeAsync(GetAppidCloudDirectoryUserArgs args, InvokeOptions? opts = null)
    public static Output<GetAppidCloudDirectoryUserResult> Invoke(GetAppidCloudDirectoryUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAppidCloudDirectoryUserResult> getAppidCloudDirectoryUser(GetAppidCloudDirectoryUserArgs args, InvokeOptions options)
public static Output<GetAppidCloudDirectoryUserResult> getAppidCloudDirectoryUser(GetAppidCloudDirectoryUserArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getAppidCloudDirectoryUser:getAppidCloudDirectoryUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
getAppidCloudDirectoryUser Result
The following output properties are available:
- Active bool
 - (Boolean) Determines if the user account is active or not
 - Display
Name string - (String) Optional user's display name
 - Emails
List<Get
Appid Cloud Directory User Email>  - (Set of Object) A set of user emails
 - Id string
 - Locked
Until double - (Integer) Epoch time in milliseconds, determines till when the user account will be locked
 - Metas
List<Get
Appid Cloud Directory User Meta>  - (List of Object) User metadata
 - Status string
 - (String) 
PENDINGorCONFIRMED - Subject string
 - (String) The user's identifier ('subject' in identity token)
 - Tenant
Id string - User
Id string - User
Name string - (String) Username
 
- Active bool
 - (Boolean) Determines if the user account is active or not
 - Display
Name string - (String) Optional user's display name
 - Emails
[]Get
Appid Cloud Directory User Email  - (Set of Object) A set of user emails
 - Id string
 - Locked
Until float64 - (Integer) Epoch time in milliseconds, determines till when the user account will be locked
 - Metas
[]Get
Appid Cloud Directory User Meta  - (List of Object) User metadata
 - Status string
 - (String) 
PENDINGorCONFIRMED - Subject string
 - (String) The user's identifier ('subject' in identity token)
 - Tenant
Id string - User
Id string - User
Name string - (String) Username
 
- active Boolean
 - (Boolean) Determines if the user account is active or not
 - display
Name String - (String) Optional user's display name
 - emails
List<Get
Appid Cloud Directory User Email>  - (Set of Object) A set of user emails
 - id String
 - locked
Until Double - (Integer) Epoch time in milliseconds, determines till when the user account will be locked
 - metas
List<Get
Appid Cloud Directory User Meta>  - (List of Object) User metadata
 - status String
 - (String) 
PENDINGorCONFIRMED - subject String
 - (String) The user's identifier ('subject' in identity token)
 - tenant
Id String - user
Id String - user
Name String - (String) Username
 
- active boolean
 - (Boolean) Determines if the user account is active or not
 - display
Name string - (String) Optional user's display name
 - emails
Get
Appid Cloud Directory User Email[]  - (Set of Object) A set of user emails
 - id string
 - locked
Until number - (Integer) Epoch time in milliseconds, determines till when the user account will be locked
 - metas
Get
Appid Cloud Directory User Meta[]  - (List of Object) User metadata
 - status string
 - (String) 
PENDINGorCONFIRMED - subject string
 - (String) The user's identifier ('subject' in identity token)
 - tenant
Id string - user
Id string - user
Name string - (String) Username
 
- active bool
 - (Boolean) Determines if the user account is active or not
 - display_
name str - (String) Optional user's display name
 - emails
Sequence[Get
Appid Cloud Directory User Email]  - (Set of Object) A set of user emails
 - id str
 - locked_
until float - (Integer) Epoch time in milliseconds, determines till when the user account will be locked
 - metas
Sequence[Get
Appid Cloud Directory User Meta]  - (List of Object) User metadata
 - status str
 - (String) 
PENDINGorCONFIRMED - subject str
 - (String) The user's identifier ('subject' in identity token)
 - tenant_
id str - user_
id str - user_
name str - (String) Username
 
- active Boolean
 - (Boolean) Determines if the user account is active or not
 - display
Name String - (String) Optional user's display name
 - emails List<Property Map>
 - (Set of Object) A set of user emails
 - id String
 - locked
Until Number - (Integer) Epoch time in milliseconds, determines till when the user account will be locked
 - metas List<Property Map>
 - (List of Object) User metadata
 - status String
 - (String) 
PENDINGorCONFIRMED - subject String
 - (String) The user's identifier ('subject' in identity token)
 - tenant
Id String - user
Id String - user
Name String - (String) Username
 
Supporting Types
GetAppidCloudDirectoryUserEmail     
GetAppidCloudDirectoryUserMeta     
- Created string
 - (String) User creation date
 - Last
Modified string - (String) Last modification date
 
- Created string
 - (String) User creation date
 - Last
Modified string - (String) Last modification date
 
- created String
 - (String) User creation date
 - last
Modified String - (String) Last modification date
 
- created string
 - (String) User creation date
 - last
Modified string - (String) Last modification date
 
- created str
 - (String) User creation date
 - last_
modified str - (String) Last modification date
 
- created String
 - (String) User creation date
 - last
Modified String - (String) Last modification date
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.