-
Notifications
You must be signed in to change notification settings - Fork 67
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
Unable to use Update-GSOrganizationalUnit #218
Comments
Hey @Chris4678 - Checking this out tonight! Thanks for raising this issue, sounds like a bug to me! |
side note - are you explicitly importing the module first or are you autoloading by running one of the command directly? if autoloading, can you try restarting your session, running |
I am using the import-module method. I have it as one of the first lines in my script as well as the switch config command so that I make sure I am accessing the correct account. |
@Chris4678 - Found the issue and got it sorted! Working on a couple other issues and enhancements but I'll have this out soon! |
## 2.31.0 * [Issue #218](#218) * Fixed: Update-GSOrganizationalUnit was failing with ull reference errors. * [Issue #213](#213) * Added: Support for RELEASE_RESOURCES TransferParam for Calendar application data transfers to function Start-GSDataTransfer * [Issue #215](#215) * Added: * Get-GSDomain * Remove-GSDomain * New-GSDomain * Get-GSDomainAlias * New-GSDomainAlias * Remove-GSDomainAlias * _These will need the additional scope of https://www.googleapis.com/auth/admin.directory.domain added in order to use!_ * Miscellaneous * Added: * Get-GSCustomer * Update-GSCustomer * Add-GSCustomerPostalAddress * _These will need the additional scope of https://www.googleapis.com/auth/admin.directory.customer added in order to use!_
Hey @Chris4678 - fix deploying now in v2.31.0! I'll ping here once available in PSGallery, should be about 10 minutes |
annnnnd update when you can and let me know! |
It works! Thanks so much! |
You bet! Sent with GitHawk |
Hi @scrthq , Trying to update using: Output:
And trying to use path: Output:
|
I have been trying to use the Update-GSOrganizationalUnit command to move an OU. Using the Wiki I have tried both the ID and path method but get an error every time.
For example:
Update-GSOrganizationalUnit -OrgUnitID "IDofOUtoBeMoved" -ParentOrgUnitPath "/NewParentOU" -ParentOrgUnitID "IDofNewParent"
This gives me an error saying parent org unit not found. I copy and pasted the path and ID from the output of Get-GSorganizationalUnit.
I then tried to get just anything at all working and tried to rename an OU:
Update-GSOrganizationalUnit -orgUnitID "IDofOU" -name "test"
This gives me a different error: "You cannot call a method on a null-valued expression" This one is pretty much an exact copy of one of the examples on the wiki so I am really not sure what to change. Any idea what I am doing wrong?
I really need to be able to move OUs, if there is another way to do this I am happy to try it out.
The text was updated successfully, but these errors were encountered: