cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

SnapLogic User and Folder Creation

MohammedRafi
New Contributor

Contributed by @MohammedRafi from Agilisium


The purpose of this pattern pipeline is to create a single/group of admin users and the default project folder for each user in SnapLogic using an API.

Note: This pattern assumes the email convention of firstname.lastname@company.com is used.

This pattern consists of two pipelines:

Master_UserProvisioning.slp
47%20PM

slProvisioning-createUser.slp
00%20PM

Configuration

Master_UserProvisioning.slp

Sources: JSON File
Targets: JSON File
Snaps used: Mapper, JSON Splitter, Pipeline Execute, Copy, JSON Formatter, File Writer

This pipeline is called from a Triggered task. It consumes the input JSON message, which contains two fields: Email ID and administrator. The Email ID field contains the list of users to be added to SnapLogic while the administrator field contains either โ€œtrueโ€ or โ€œfalseโ€, specifying whether the user is an administrator.

The output will be written in file to SLDB in JSON format and we have an unconnected output view to get the response using REST calls.

Output Values: It contains the following fields: statusUser, user, and email.

slProvisioning-createUser.slp

Sources: email address
Targets: SnapLogic user and user project
Snaps used: REST Get, Mapper, Router, REST Post, Union

This pipeline validates whether the users already exist in SnapLogic and if not, creates a new user and default folder in SnapLogic using REST POST. It also captures the error and sends back the response to the master user provisioning pipeline.

Downloads

Sample_Input_Message.txt (148 Bytes)
Master_UserProvisioning.slp (12.1 KB)
slProvisioning-createUser.slp (17.5 KB)

1 REPLY 1

MohammedRafi
New Contributor

For any clarifications related to this pattern please reach out snaplogic@agilisium.com