Giter Site home page Giter Site logo

tools4everbv / helloid-conn-prov-target-activedirectory Goto Github PK

View Code? Open in Web Editor NEW
2.0 9.0 2.0 325 KB

Active Directory - Target

PowerShell 100.00%
provisioning target active-directory dynamic-permissions dynamic permissions dynamicpermissions dir itm

helloid-conn-prov-target-activedirectory's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

helloid-conn-prov-target-activedirectory's Issues

Error handling incorrect. Multiple throws outside a try/catch

For example, when the group cannot be found, the script is cancelled without an audit message.

16:37:35.33 Failed to grant permission '{ "PermissionDefinitionId": "ae799ab5-9be9-8e3c-d0cb-cabed9840864", "PermissionIdentification": { "Identification": "62f2a2b5-d1f7-1199-1a97-7c6e1a882906" } }'
16:37:35.33 Failed to grant permission '{ "PermissionDefinitionId": "ae799ab5-9be9-8e3c-d0cb-cabed9840864", "PermissionIdentification": { "Identification": "62f2a2b5-d1f7-1199-1a97-7c6e1a882906" } }', message: Error running script
16:37:33.02 [Error] PowerShell script did not complete successfully
16:37:33.01 [Error] No Group found that matches filter 'Name -eq "140220"'
16:34:12.17 Preparing grant action for processing

Testing v2 repo: Example resource creation logic is not in line with the logic in the group subpermission scripts

Example resource creation logic is not in line with the logic in the group subpermission scripts

(Resource creation uses a key on extensionAttribute1, subpermission looks at displayname for a match)
Also the resource creation script creates title groups, while the subpermission script assigns department script.

I would suggest:

  1. we update the resource script to create department groups
  2. we update the subpermission script to use extensionAttribute1 as a correlation attribute

Dynamic permission script doesn't show the "throw reason" when searching a group

This issue is in all dynamic permission scripts.

HelloID Support Information doesn't show the "throw reason". The HelloID administrator is not able to see if a group doesn't exist or is found multiple times.

The solution should be TRY/CATCH or a different method then Throw.

Example of the problem:
https://github.com/Tools4everBV/HelloID-Conn-Prov-Target-ActiveDirectory/blob/9a4a2aae8fbfcf6b960b1cd663a42993265054fc/dynamicPermission.Groups.title.ps1#L102C1-L130C2

function Get-ADSanitizeGroupName

the scripts dynamicPermission.Groups.ReferenceExample.ps1 and resources.Groups.department.ReferenceExample.ps1 both use a function to santize the groupname. The name off the function is not the same in both script and also the end result.
function Get-ADSanitizedGroupName vs function Get-ADSanitizeGroupName.
I resolved the use by changing in both scripts the function as seen in the attached file
function sanitize.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.