Manage user mapping

This topic describes how to manage user maps with the Connect Pulumi plugin with Python and YAML.

The UserMapResource resource

The UserMapResource allows you to manage user mappings between Connect users and users in connected data sources using infrastructure as code. User maps define how usernames in one system correspond to usernames in another.

Resource type: mfcpulumiprovider:index:UserMapResource

The following table lists the properties:

Property Type Description
connectName string The display name of the user map in Connect.
userMapEntries list of objects

A list of the user mapping entries. Each entry must contain the following string entries:

  • userName: The username as it appears in Connect, for example, the full name or email address.

  • datasourceIdOrName: The ID or name of the data source to use when mapping the user.

Python example: User mapping

This section provides a Python example for user mapping.

Copy code
import pulumi
from pulumi_mfcpulumiprovider import UserMapResource

# Create a user map resource
usermap1 = UserMapResource(
    "usermap1",
    connect_name="example user map",
    user_map_entries=[
        {"userName": "FirstName LastName", "datasourceIdOrName": "JIRA"},
        {"userName": "email@email.com", "datasourceIdOrName": "Octane"}
    ])

YAML example: User mapping

This section provides a YAML example for user mapping.

Copy code
name: yamlConnect
description: A minimal Pulumi YAML program
runtime: yaml
resources:
  usermap1:
    type: mfcpulumiprovider:index:UserMapResource
    properties:
      connectName: example user map
      userMapEntries:
        - userName: FirstName LastName
          datasourceIdOrName: JIRA
        - userName: email@email.com
          datasourceIdOrName: Octane
outputs: {}

For onboarding and importing existing resources into Pulumi state, see Pulumi onboarding.

See also