platform.ScimUser
Explore with Pulumi AI
Provides a JFrog SCIM User resource to manage users with the SCIM protocol.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as platform from "@pulumi/platform";
const my_scim_user = new platform.ScimUser("my-scim-user", {
    active: true,
    emails: [{
        primary: true,
        value: "test@tempurl.org",
    }],
    username: "test@tempurl.org",
});
import pulumi
import pulumi_platform as platform
my_scim_user = platform.ScimUser("my-scim-user",
    active=True,
    emails=[{
        "primary": True,
        "value": "test@tempurl.org",
    }],
    username="test@tempurl.org")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/platform/v2/platform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := platform.NewScimUser(ctx, "my-scim-user", &platform.ScimUserArgs{
			Active: pulumi.Bool(true),
			Emails: platform.ScimUserEmailArray{
				&platform.ScimUserEmailArgs{
					Primary: pulumi.Bool(true),
					Value:   pulumi.String("test@tempurl.org"),
				},
			},
			Username: pulumi.String("test@tempurl.org"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Platform = Pulumi.Platform;
return await Deployment.RunAsync(() => 
{
    var my_scim_user = new Platform.ScimUser("my-scim-user", new()
    {
        Active = true,
        Emails = new[]
        {
            new Platform.Inputs.ScimUserEmailArgs
            {
                Primary = true,
                Value = "test@tempurl.org",
            },
        },
        Username = "test@tempurl.org",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.platform.ScimUser;
import com.pulumi.platform.ScimUserArgs;
import com.pulumi.platform.inputs.ScimUserEmailArgs;
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 my_scim_user = new ScimUser("my-scim-user", ScimUserArgs.builder()
            .active(true)
            .emails(ScimUserEmailArgs.builder()
                .primary(true)
                .value("test@tempurl.org")
                .build())
            .username("test@tempurl.org")
            .build());
    }
}
resources:
  my-scim-user:
    type: platform:ScimUser
    properties:
      active: true
      emails:
        - primary: true
          value: test@tempurl.org
      username: test@tempurl.org
Create ScimUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScimUser(name: string, args: ScimUserArgs, opts?: CustomResourceOptions);@overload
def ScimUser(resource_name: str,
             args: ScimUserArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def ScimUser(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             emails: Optional[Sequence[ScimUserEmailArgs]] = None,
             username: Optional[str] = None,
             active: Optional[bool] = None)func NewScimUser(ctx *Context, name string, args ScimUserArgs, opts ...ResourceOption) (*ScimUser, error)public ScimUser(string name, ScimUserArgs args, CustomResourceOptions? opts = null)
public ScimUser(String name, ScimUserArgs args)
public ScimUser(String name, ScimUserArgs args, CustomResourceOptions options)
type: platform:ScimUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ScimUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ScimUserArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ScimUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScimUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScimUserArgs
- 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 scimUserResource = new Platform.ScimUser("scimUserResource", new()
{
    Emails = new[]
    {
        new Platform.Inputs.ScimUserEmailArgs
        {
            Primary = false,
            Value = "string",
        },
    },
    Username = "string",
    Active = false,
});
example, err := platform.NewScimUser(ctx, "scimUserResource", &platform.ScimUserArgs{
Emails: .ScimUserEmailArray{
&.ScimUserEmailArgs{
Primary: pulumi.Bool(false),
Value: pulumi.String("string"),
},
},
Username: pulumi.String("string"),
Active: pulumi.Bool(false),
})
var scimUserResource = new ScimUser("scimUserResource", ScimUserArgs.builder()
    .emails(ScimUserEmailArgs.builder()
        .primary(false)
        .value("string")
        .build())
    .username("string")
    .active(false)
    .build());
scim_user_resource = platform.ScimUser("scimUserResource",
    emails=[{
        "primary": False,
        "value": "string",
    }],
    username="string",
    active=False)
const scimUserResource = new platform.ScimUser("scimUserResource", {
    emails: [{
        primary: false,
        value: "string",
    }],
    username: "string",
    active: false,
});
type: platform:ScimUser
properties:
    active: false
    emails:
        - primary: false
          value: string
    username: string
ScimUser 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 ScimUser resource accepts the following input properties:
- Emails
List<ScimUser Email> 
- Username string
- Active bool
- Emails
[]ScimUser Email Args 
- Username string
- Active bool
- emails
List<ScimUser Email> 
- username String
- active Boolean
- emails
ScimUser Email[] 
- username string
- active boolean
- emails List<Property Map>
- username String
- active Boolean
Outputs
All input properties are implicitly available as output properties. Additionally, the ScimUser resource produces the following output properties:
- Groups
List<ScimUser Group> 
- Id string
- The provider-assigned unique ID for this managed resource.
- Meta Dictionary<string, string>
- Groups
[]ScimUser Group 
- Id string
- The provider-assigned unique ID for this managed resource.
- Meta map[string]string
- groups
List<ScimUser Group> 
- id String
- The provider-assigned unique ID for this managed resource.
- meta Map<String,String>
- groups
ScimUser Group[] 
- id string
- The provider-assigned unique ID for this managed resource.
- meta {[key: string]: string}
- groups
Sequence[ScimUser Group] 
- id str
- The provider-assigned unique ID for this managed resource.
- meta Mapping[str, str]
- groups List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- meta Map<String>
Look up Existing ScimUser Resource
Get an existing ScimUser 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?: ScimUserState, opts?: CustomResourceOptions): ScimUser@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active: Optional[bool] = None,
        emails: Optional[Sequence[ScimUserEmailArgs]] = None,
        groups: Optional[Sequence[ScimUserGroupArgs]] = None,
        meta: Optional[Mapping[str, str]] = None,
        username: Optional[str] = None) -> ScimUserfunc GetScimUser(ctx *Context, name string, id IDInput, state *ScimUserState, opts ...ResourceOption) (*ScimUser, error)public static ScimUser Get(string name, Input<string> id, ScimUserState? state, CustomResourceOptions? opts = null)public static ScimUser get(String name, Output<String> id, ScimUserState state, CustomResourceOptions options)resources:  _:    type: platform:ScimUser    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Active bool
- Emails
List<ScimUser Email> 
- Groups
List<ScimUser Group> 
- Meta Dictionary<string, string>
- Username string
- Active bool
- Emails
[]ScimUser Email Args 
- Groups
[]ScimUser Group Args 
- Meta map[string]string
- Username string
- active Boolean
- emails
List<ScimUser Email> 
- groups
List<ScimUser Group> 
- meta Map<String,String>
- username String
- active boolean
- emails
ScimUser Email[] 
- groups
ScimUser Group[] 
- meta {[key: string]: string}
- username string
- active bool
- emails
Sequence[ScimUser Email Args] 
- groups
Sequence[ScimUser Group Args] 
- meta Mapping[str, str]
- username str
- active Boolean
- emails List<Property Map>
- groups List<Property Map>
- meta Map<String>
- username String
Supporting Types
ScimUserEmail, ScimUserEmailArgs      
ScimUserGroup, ScimUserGroupArgs      
- Value string
- Value string
- value String
- value string
- value str
- value String
Import
$ pulumi import platform:index/scimUser:ScimUser my-scim-user test@tempurl.org
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- platform jfrog/terraform-provider-platform
- License
- Notes
- This Pulumi package is based on the platformTerraform Provider.