Skip to content
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

G Suite Business - Archived User #252

Closed
blocconl opened this issue Dec 6, 2019 · 7 comments
Closed

G Suite Business - Archived User #252

blocconl opened this issue Dec 6, 2019 · 7 comments
Assignees
Milestone

Comments

@blocconl
Copy link

blocconl commented Dec 6, 2019

Is your feature request related to a problem? Please describe.
We would like to Get/Remove/Set/Update the 'G Suite Business - Archived User' license.

Describe the solution you'd like
We would like to use this feature in PSGSuite

Describe alternatives you've considered
I have seen that GAM supports this license.

Additional context
ProductId : 101034
ProductName : G Suite Archived User
SkuId : 1010340002
SkuName : G Suite Business - Archived User

@blocconl
Copy link
Author

blocconl commented Dec 6, 2019

Never mind, found the solution.

Added this code bellow to the param set of Update-GSUser. This worked for me.

[parameter(Mandatory = $false)]
[Switch]
$Archived,

@scrthq
Copy link
Member

scrthq commented Dec 16, 2019

hey @blocconl - Thanks for opening this up! So this is a license switch completely, I take it? First I've seen that license type tbh, but Google's added a few things over time. If that's all that is needed to get the license switched over, I'll work on adding that to the actual code base for the next release

@scrthq scrthq self-assigned this Dec 16, 2019
@blocconl
Copy link
Author

Hey @scrthq,
Yes this is a license to reduce costs while waiting for account deletion, you can switch this license to activate / deactivate it.

Would be nice if the 'Archived User' license could be added to Get-GSUserLicense so you have a overview of 'Archived Users'.

Thanks!

@scrthq
Copy link
Member

scrthq commented Dec 28, 2019

hey @blocconl - so it looks like Archived User licenses might not be in the standard license type (not finding it under the Product and SKU list at least).

I don't have any Archived User licenses purchased for any of my domains; do you get anything back at all when trying Get-GSUserLicense against a user with an AU license assigned? If so, what is the Product ID and SKU ID listed?

This might be similar to Cloud Identity Free licenses in that they aren't visible through the License API, seeing what I can do though

@scrthq scrthq mentioned this issue Dec 29, 2019
scrthq added a commit that referenced this issue Dec 29, 2019
## 2.35.0 - 2019-12-29

* [Issue #216](#216) - _Thank you, [@WJurecki](https://github.com/WJurecki)!_
    * Added `Add-GSSheetValues` to use the native `Append()` method instead of `BatchUpdate()` to prevent needing to calculate the last row like you do with `Export-GSSheet`. Since the input for this method has additional options and the output differs from what `Export-GSSheet` outputs, this has been moved to a unique function to prevent introducing breaking changes to `Export-GSSheet`.
* [Issue #221](#221)
    * Added: `Invoke-GSUserOffboarding` function to wrap common offboarding tasks for ease of access management automation.
* [Issue #248](#248)
    * Fixed `Get-GSSheetInfo` so it no longer defaults `-IncludeGridData` to `$true` if not specified in `$PSBoundParameters`.
* [Issue #249](#249)
    * Updated private function `Resolve-Email` with new `IsGroup` switch, then cleaned up all `*-GSGroup*` functions to use it so that Group ID's are respected based on RegEx match.
* [Issue #252](#252)
    * Added: `Archived` parameter to `Update-GSUser` to enable setting of Archived User licenses.
* Miscellaneous
    * Swapped instances of `Get-StoragePath` for `Get-ConfigurationPath` in `Import-SpecificConfiguration` and `Set-PSGSuiteConfig` to avoid alias related issues with PowerShell 4.0
@scrthq
Copy link
Member

scrthq commented Dec 29, 2019

@blocconl - the $Archived parameter has been added in as of v2.35.0. As it stands, I don't see a documented way to get Archived User license information, so I'll wait for your test results / response to my last comment before closing this out.

@blocconl
Copy link
Author

blocconl commented Dec 30, 2019

@blocconl - the $Archived parameter has been added in as of v2.35.0. As it stands, I don't see a documented way to get Archived User license information, so I'll wait for your test results / response to my last comment before closing this out.

@scrthq - I have tested the $Archived parameter, and it's works great! Thank you.

I added the Product ID and SKU ID for 'archived users' to Get-GSUserLicense when i call a user than i get the license back.

ProductId : 101034
SkuId : 1010340002

@scrthq
Copy link
Member

scrthq commented Dec 30, 2019

Awesome!!! Thank you for sending those product and SKU IDs!! I'll get those added in to the *License functions ASAP. Although not officially documented, looks like GAM-X has the full list (or at least a more complete one) with a few others not documented as well: https://github.com/taers232c/GAMADV-X/blob/2da360608a13a4142c57b3416b737fa6291565e5/src/gamlib/glskus.py

@scrthq scrthq added this to the 2.36.0 milestone Jan 22, 2020
@scrthq scrthq mentioned this issue Feb 28, 2020
@scrthq scrthq closed this as completed in daaae47 Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants