TheJumpCloud / jumpcloud-ADMU

JumpCloud Active Directory Migration Utility - JCADMU
23 stars 7 forks source link

Sa 2995 mtp support #78

Closed jworkmanjc closed 1 year ago

jworkmanjc commented 1 year ago

Issues

What does this solve?

Administrators with MTP admin keys could not identify users to bind in previous versions of the ADMU if they were using their MTP API Key. This release addresses this limitation by specifically prompting admins to select a MTP Org if a MTP Key is detected.

Is there anything particularly tricky?

Yes, many functions were changed in this module update. A MTP key is required to test this functionality.

How should this be tested?

The GUI App must be validated manually, test cases are written for the command line version of the tool

[Test Case: GUI Migration (MTP)]

[Test Case: CLI Migration (MTP)]

Screenshots

New GUI displays OrgName/ OrgID after an API Key is validated: Screen Shot 2022-11-16 at 8 46 53 AM

When an MPT Key is validated a GUI prompt is presented, admins can select one org from a dropdown list. Org IDs are presented because Org Names are not unique: Screen Shot 2022-11-16 at 8 47 19 AM

Changed behavior: When the AutoBind JumpCloud User option is selected. A validation step now occurs and the API Key is checked before migration begins.

If the Key is an MTP Key and no Organization ID is provided, the script will error and exit Screen Shot 2022-11-16 at 9 44 31 AM

If the ORG ID is provided, the script will validate that the Key and ORG ID match. This behavior is the same for a non-MTP Admin key. As such there should be no need for Non-MTP admins to edit their scripts and pass in an ORG ID. MTP Admins will need to do this Screen Shot 2022-11-16 at 9 48 09 AM