SnapLogic User and Folder Creation
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 slProvisioning-createUser.slp 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)5.4KViews0likes1CommentGet list of Service Accounts in a SnapLogic Org
Created by @dmiller This pattern gathers the list of members within the specified org and filters out only those accounts that are service accounts. Parent Pipeline Child Pipeline Configuration In the parent pipeline, specify your org name in the pipeline parameters. Sources: SnapLogic Targets: JSON document Snaps used: Parent Pipeline: REST Get, JSON Splitter, Mapper, Pipeline Execute, JSON Formatter, File Writer. Child Pipeline: REST Get, Mapper, Filter Downloads Filter Org Members by Type.slp (14.9 KB) Get Service Accounts.slp (6.4 KB)3.3KViews0likes0CommentsCreating Users within SnapLogic (Excel + REST)
Contributed by @rdill This pattern reads an Excel file that contains the necessary attributes to create a user in an existing SnapLogic org, with the Mapper Snap defining the user and setting permissions. Configuration The user who runs this pipeline needs to be a SnapLogic Admin. Source: Excel Spreadsheet Target: SnapLogic user Snaps used: File reader, Excel Parser, Mapper, REST Post, JSON formatter, File writer Downloads create SL users.slp (12.5 KB) Partner_onboarding_sample.xlsx (9.1 KB)2.5KViews1like0Comments