Skip to content

Fix: Manger and sponsor functions, fix casing, and add missing options when creating new users #1565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 23, 2025

Conversation

kris6673
Copy link
Contributor

This is missing the handling for state in EditUser, but I couldnt figure out a good way of handling it. @JohnDuprey

Invoke-EditUser.ps1: Refactored to use new Set-CIPPManager and Set-CIPPSponsor functions for setting manager and sponsor, improving maintainability.
New-CIPPUserTask.ps1: Fixed casing for parameters, switched to new sponsor logic, and improved function calls.
New-CippUser.ps1: Added missing state and otherMails properties to user creation.
Set-CIPPManager.ps1: Improved error handling and parameter naming.
Set-CIPPSponsor.ps1: New function for setting a user's sponsor.
Add-CIPPAlias.ps1: Fixed variable casing and improved error handling in alias management.

@JohnDuprey JohnDuprey merged commit 701357c into KelvinTegelaar:dev Jul 23, 2025
@kris6673 kris6673 deleted the fix-minor-issues branch July 24, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants