TheJumpCloud / jcapi-powershell

MIT License
10 stars 3 forks source link

Sa 2316 add excluded functions #49

Closed jworkmanjc closed 2 years ago

jworkmanjc commented 2 years ago

Issues

What does this solve?

This release is a rollup release adding several new functions to the PowerShell SDKs:

JumpCloud.SDK.V1:

JumpCloud.SDK.V2:

BugFix for:

JumpCloud.SDK.V2: Get-JcSdkGsuiteUsersToImport.ps1, in previous versions of the published SDK, this function would not return the nextPageToken required to get the next page of Google Workspace users

Is there anything particularly tricky?

N/A

How should this be tested?

Initalize-JcSdkUserState - Tests written into this release, See related test

Create a new staged user get their ID: Initialize-JcSdkUserState -Id {userID} -email {your.email+inittest@jumpcloud.com} You should see an email in asking for the user to login to JumpCloud

Reset-JcSdkAdministratorUserActivation - Not explicitly testing to prevent unauthorized access - test locally and activation emails should be sent!

Create an admin account in your testing org something with an email like {your.email+adminskdtest@jumpcloud.com} Reset-JcSdkAdministratorUserActivation -id {someAdminUserId} You should see an email in asking for the admin to login

Reset-JcSdkAdministratorUserTotp - Not explicitly testing to prevent unauthorized access - test locally and activation emails should be sent!

Using the admin in your previous test Reset-JcSdkAdministratorUserTotp -id {someAdminUserId} You should see an email in asking for the admin to reset their TOTP activation

Search-JcSdkCommand - Tests written into this release, See related test

Search-JcSdkCommand should return all commands in your org, try playing with the filters

Set-JcSdkAdministratorUser - Tests written into this release, See related test

Using the admin in your previous administrator test Reset-JcSdkAdministratorUser -id {someAdminUserId} -firstname "Test" The admins firstname should be "Test"

Sync-JcSdkUserMfa - Tests written into this release, See related test

Sync-JcSdkUserMfa -id {SomeUserID} should not throw an error

Get-JcSdkApplication (V2) - Tests written into this release, See related test

Get-JcSdkApplication -id {someSSOApplicationID} should return the SSO app

Import-JcSdkScim (V2) - No resource to test with

Get-JCSdkGusiteUsersToImportFormatted (V2) - Tested locally with a Guiste integration, not testing automatically since we can’t import users w/o breaking things

Get-JCSdkGusiteUsersToImportFormatted -GsuiteID {yourGoogleWorkspaceID} should return first page of jumpcloud mapped (formatted) results

Get-JCSdkGusiteUsersToImport (V2) - Tested locally with a Guiste integration, not testing automatically since we can’t import users w/o breaking things - the nextPageToken should be returned when you run this function.

Get-JCSdkGusiteUsersToImport -GsuiteID {yourGoogleWorkspaceID} should return first page of results

Screenshots