Skip to content

Tools4everBV/HelloID-Conn-SA-Sync-ActiveDirectory-Groups-To-SelfService-Products

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HelloID-Conn-SA-Sync-ActiveDirectory-Groups-To-SelfService-Products

Synchronizes AD groups to HelloID Self service products

Forks Badge Pull Requests Badge Issues Badge GitHub contributors

ℹ️ Information
This repository contains the connector and configuration code only. The implementer is responsible to acquire the connection details such as username, password, certificate, etc. You might even need to sign a contract or agreement with the supplier before implementing this connector. Please contact the client's application manager to coordinate the connector requirements.

Table of Contents

Requirements

  • Make sure you have Windows PowerShell 5.1 installed on the server where the HelloID agent and Service Automation agent are running.
  • Make sure you have installed the PowerShell ActiveDirectory module.
  • Make sure the sychronization is configured to meet your requirements.

Introduction

By using this connector, you will have the ability to create and remove HelloID SelfService Products based on groups in your local Active Directory.

The products will be created for each group in scope. This way you won't have to manually create a product for each group.

And vice versa for the removing of the products. The products will be removed (or disabled, based on your preference) when a group is no longer in scope. This way no products will remain that "should no longer exist".

This is intended for scenarios where there are (lots of) groups that we want to be requestable as a product. This group sync is desinged to work in combination with the ActiveDirectory Groupmembersips to Productassignments Sync.

Getting started

Create an API key and secret

  1. Go to the Manage portal > Security > API section.
  2. Click on the Add Api key button to create a new API key.
  3. Optionally, you can add a note that will describe the purpose of this API key
  4. Optionally, you can restrict the IP addresses from which this API key can be used.
  5. Click on the Save button to save the API key.
  6. Go to the Manage portal > Automation > Variable library section and confim that the auto variables specified in the connection settings are available.

Synchronization settings

Variable name Description Notes
$portalBaseUrl String value of HelloID Base Url (Default Global Variable)
$portalApiKey String value of HelloID Api Key (Default Global Variable)
$portalApiSecret String value of HelloID Api Secret (Default Global Variable)
$ADGroupsFilter String value of filter of which AD groups to include Optional, if all groups need to be queried, the filter should be set to "*"
$ADGroupsOUs Array of string values of which AD OUs to include in search for groups Optional, when no OUs are provided ($ADGroupsOUs = @()), all ous will be queried
$productAccessGroup String value of which HelloID group will have access to the products Optional, if not found, the product is created without Access Group
$calculateProductResourceOwnerPrefixSuffix Boolean value of whether to check for a specific "owner" group in HelloID to use as resource owner for the products Optional, can only be used when the "owner group" exists and is available in HelloID
$calculatedResourceOwnerGroupSource String value of source of the groups in HelloID Optional, if left empty, this will result in creation of a new group
$calculatedResourceOwnerGroupPrefix String value of prefix to recognize the owner group Optional, the owner group will be queried based on the group name and the specified prefix and suffix - if both left empty, this will result in creation of a new group - if group is not found, it will be created
$calculatedResourceOwnerGroupSuffix String value of suffix to recognize the owner group Optional, the owner group will be queried based on the group name and the specified prefix and suffix - if both left empty, this will result in creation of a new group - if group is not found, it will be created
$productResourseOwner String value of which HelloID group to use as resource owner for the products Optional, if empty the groupname will be: "local/[group displayname] Resource Owners"
$productApprovalWorkflowId String value of HelloID Approval Workflow GUID to use for the products Optional, if empty. The Default HelloID Workflow is used. If specified Workflow does not exist the task will fail
$productVisibility String value of which Visbility to use for the products Supported values: All, Resource Owner And Manager, Resource Owner, Disabled. For more information, see the HelloID Docs here
$productRequestCommentOption String value of which Comment Option to use for the products Supported values: Optional, Hidden, Required. For more information, see the HelloID Docs here
$productAllowMultipleRequests Boolean value of whether to allow Multiple Requests for the products If True, the product can be requested unlimited times
$productFaIcon String value of which Font Awesome icon to use for the products For more valid icon names, see the Font Awesome cheat sheet here
$productCategory String value of which HelloID category will be used for the products Required, must be an existing category if not found, the task will fail
$productReturnOnUserDisable Boolean value of whether to set the option Return Product On User Disable for the products For more information, see the HelloID Docs here
$removeProduct Boolean value of whether to remove the products when they are no longer in scope If set to $false, obsolete products will be disabled
$overwriteExistingProduct Boolean value of whether to overwrite existing products in scope with the specified properties of this task If True, existing product will be overwritten with the input from this script (e.g. the approval worklow or icon). Only use this when you actually changed the product input. Note: Actions are always overwritten, no compare takes place between the current actions and the actions this sync would set
$overwriteAccessGroup Boolean value of whether to overwrite existing access groups in scope with the specified access group this task Should be on false by default, only set this to true to overwrite product access group - Only meant for "manual" bulk update, not daily scheduled. Note: Access group is always overwritten, no compare takes place between the current access group and the access group this sync would set
$ProductSkuPrefix String value of prefix that will be used in the Code for the products Optional, but recommended, when no SkuPrefix is provided the products won't be recognizable as created by this task
$adGroupUniqueProperty String value of name of the property that is unique for the AD groups and will be used in the Code for the products The default value ("objectGUID") is set be as unique as possible

Remarks

Getting help

For more information on how to configure a HelloID PowerShell scheduled task, please refer to our documentation pages

If you need help, feel free to ask questions on our forum

HelloID Docs

The official HelloID documentation can be found at: https://docs.helloid.com/