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

Accessing IM Field? #179

Closed
Mschram72 opened this issue Apr 15, 2019 · 9 comments
Closed

Accessing IM Field? #179

Mschram72 opened this issue Apr 15, 2019 · 9 comments
Assignees

Comments

@Mschram72
Copy link

Is it possible to access the IM field under (Get-GSUSER -primaryemail [email protected]).IMS.IM ?

I can read the value, but cannot find a way to update it, or to create a new user with something in this field.

@scrthq
Copy link
Member

scrthq commented Apr 16, 2019

Hey @Mschram72 - I do believe you're correct in that it's not yet supported, but should be an easy one to add =]. Sanity checking to confirm right now, thanks for popping in on the other issue too!

@scrthq scrthq self-assigned this Apr 16, 2019
@Mschram72
Copy link
Author

Thanks so much :D !

@scrthq
Copy link
Member

scrthq commented Apr 16, 2019

Confirmed it does not exist yet! Should have this added in within the next couple days 💪

It will be added in as the IM parameter on New-GSUser and Update-GSUser and will have a helper function Add-GSUserIM to create the correct type. If you're comfortable with using .NET directly from PowerShell, you can bypass the helper function and instantiate the required type like so:

[Google.Apis.Admin.Directory.directory_v1.Data.UserIm]@{
    Im             = 'scrthq'
    Primary        = $true
    Type           = 'home'
    Protocol       = 'custom_protocol'
    CustomProtocol = 'twitter'
}

@scrthq
Copy link
Member

scrthq commented Apr 16, 2019

(that will still depend on the parameter being added to the New-GSUser and Update-GSUser functions though)

@Mschram72
Copy link
Author

Perfect! This is going to save me a ton of time! Thanks so much for your help, and for the excellent set of cmdlets!!

@scrthq
Copy link
Member

scrthq commented Apr 16, 2019

Happy to help, I'm glad the module is useful for you! 💟

scrthq added a commit that referenced this issue Apr 25, 2019
## 2.26.2

* [Issue #177](#177)
  * Added: Fields parameter to Get-GSDriveFileList
* [Issue #178](#178)
  * Fixed: Start-GSDriveFileUpload failing on PowerShell 4.0
* [Issue #179](#179)
  * Added: Ims parameter to both New-GSUser and Update-GSUser
  * Added: Add-GSUserIm function to create correct type for new Ims parameter.
* Miscellaneous
  * Added: Clear-PSGSuiteServiceCache to clear the cache and dispose of any remaining open web clients.
  * Improved overall service caching.
  * Added: Support for Cloud-Identity licenses for Get-GSUserLicense
  * Added: OutputType for all applicable Helper functions (i.e. Add-GSUserIm)
scrthq added a commit that referenced this issue Apr 25, 2019
## 2.26.2

* [Issue #177](#177)
  * Added: `Fields` parameter to `Get-GSDriveFileList`
* [Issue #178](#178)
  * Fixed: `Start-GSDriveFileUpload` failing on PowerShell 4.0
* [Issue #179](#179)
  * Added: `Ims` parameter to both `New-GSUser` and `Update-GSUser`
  * Added: `Add-GSUserIm` function to create correct type for new `Ims` parameter.
* Miscellaneous
  * Added: `Clear-PSGSuiteServiceCache` to clear the cache and dispose of any remaining open web clients.
  * Improved overall service caching.
  * Added: Support for `Cloud-Identity` licenses for `Get-GSUserLicense`
  * Added: `OutputType` for all applicable Helper functions (i.e. `Add-GSUserIm`)
scrthq added a commit that referenced this issue Apr 25, 2019
## 2.26.2

* [Issue #177](#177)
  * Added: Fields parameter to Get-GSDriveFileList
* [Issue #178](#178)
  * Fixed: Start-GSDriveFileUpload failing on PowerShell 4.0
* [Issue #179](#179)
  * Added: Ims parameter to both New-GSUser and Update-GSUser
  * Added: Add-GSUserIm function to create correct type for new Ims parameter.
* Miscellaneous
  * Added: Clear-PSGSuiteServiceCache to clear the cache and dispose of any remaining open web clients.
  * Improved overall service caching.
  * Added: Support for Cloud-Identity licenses for Get-GSUserLicense
  * Added: OutputType for all applicable Helper functions (i.e. Add-GSUserIm)
@scrthq
Copy link
Member

scrthq commented Apr 25, 2019

Hey @Mschram72 - v2.26.2 is out now with IM management support. Please try it out and let me know if you're having any issues! Thanks for your patience!

@scrthq scrthq closed this as completed Apr 25, 2019
@ghost ghost removed the work in progress label Apr 25, 2019
@Mschram72
Copy link
Author

Works perfectly! Thanks so much mate!

@scrthq
Copy link
Member

scrthq commented Apr 26, 2019

You bet @Mschram72 !! <3

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