1. Packages
  2. Okta Provider
  3. API Docs
  4. getAppUserAssignments
Okta v4.11.3 published on Monday, Oct 21, 2024 by Pulumi

okta.getAppUserAssignments

Explore with Pulumi AI

okta logo
Okta v4.11.3 published on Monday, Oct 21, 2024 by Pulumi

    Get a set of users assigned to an Okta application.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const test = okta.getAppUserAssignments({
        id: testOktaAppOauth.id,
    });
    
    import pulumi
    import pulumi_okta as okta
    
    test = okta.get_app_user_assignments(id=test_okta_app_oauth["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v4/go/okta"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := okta.GetAppUserAssignments(ctx, &okta.GetAppUserAssignmentsArgs{
    			Id: testOktaAppOauth.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Okta.GetAppUserAssignments.Invoke(new()
        {
            Id = testOktaAppOauth.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.OktaFunctions;
    import com.pulumi.okta.inputs.GetAppUserAssignmentsArgs;
    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 test = OktaFunctions.getAppUserAssignments(GetAppUserAssignmentsArgs.builder()
                .id(testOktaAppOauth.id())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: okta:getAppUserAssignments
          Arguments:
            id: ${testOktaAppOauth.id}
    

    Using getAppUserAssignments

    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 getAppUserAssignments(args: GetAppUserAssignmentsArgs, opts?: InvokeOptions): Promise<GetAppUserAssignmentsResult>
    function getAppUserAssignmentsOutput(args: GetAppUserAssignmentsOutputArgs, opts?: InvokeOptions): Output<GetAppUserAssignmentsResult>
    def get_app_user_assignments(id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetAppUserAssignmentsResult
    def get_app_user_assignments_output(id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetAppUserAssignmentsResult]
    func GetAppUserAssignments(ctx *Context, args *GetAppUserAssignmentsArgs, opts ...InvokeOption) (*GetAppUserAssignmentsResult, error)
    func GetAppUserAssignmentsOutput(ctx *Context, args *GetAppUserAssignmentsOutputArgs, opts ...InvokeOption) GetAppUserAssignmentsResultOutput

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

    public static class GetAppUserAssignments 
    {
        public static Task<GetAppUserAssignmentsResult> InvokeAsync(GetAppUserAssignmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetAppUserAssignmentsResult> Invoke(GetAppUserAssignmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAppUserAssignmentsResult> getAppUserAssignments(GetAppUserAssignmentsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: okta:index/getAppUserAssignments:getAppUserAssignments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the Okta App being queried for groups
    Id string
    ID of the Okta App being queried for groups
    id String
    ID of the Okta App being queried for groups
    id string
    ID of the Okta App being queried for groups
    id str
    ID of the Okta App being queried for groups
    id String
    ID of the Okta App being queried for groups

    getAppUserAssignments Result

    The following output properties are available:

    Id string
    ID of the Okta App being queried for groups
    Users List<string>
    List of user IDs assigned to the app
    Id string
    ID of the Okta App being queried for groups
    Users []string
    List of user IDs assigned to the app
    id String
    ID of the Okta App being queried for groups
    users List<String>
    List of user IDs assigned to the app
    id string
    ID of the Okta App being queried for groups
    users string[]
    List of user IDs assigned to the app
    id str
    ID of the Okta App being queried for groups
    users Sequence[str]
    List of user IDs assigned to the app
    id String
    ID of the Okta App being queried for groups
    users List<String>
    List of user IDs assigned to the app

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v4.11.3 published on Monday, Oct 21, 2024 by Pulumi