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

[Feature Request] Set language for users #229

Closed
visorsz opened this issue Sep 9, 2019 · 3 comments
Closed

[Feature Request] Set language for users #229

visorsz opened this issue Sep 9, 2019 · 3 comments

Comments

@visorsz
Copy link

visorsz commented Sep 9, 2019

Is your feature request related to a problem? Please describe.
All newly created users get the default language in G-suite. The company I work for has users of different nationalities and it would be great to set a language when the user is created.

Describe the solution you'd like
It would be great if I could set the language of a user when using New-GSUser and Update-GSuser.

Describe alternatives you've considered
If a user is created in a certain Organisational Unit, then get language XYZ. However I don't think this would be easier than my above request.

Additional context
The link below could be useful
https://developers.google.com/gmail/api/v1/reference/users/settings/updateLanguage

@scrthq
Copy link
Member

scrthq commented Sep 9, 2019

Hey @visorsz - The link provided is for the Gmail API, which can be implemented on it's own, but will likely not work as expected (for New-GSUser at least). This is because the Gmail API authenticates as the user you're targeting, not as the Super Admin account, and new users typically do not have Gmail activated yet until they've logged in once and accepted the Terms & Conditions.

I'll add in the Gmail Setting functions to manage that and see if I can get a wrapper in on New-GSUser/Update-GSUser, but your mileage may vary for actual use outside of scripting the follow-up command.

@visorsz
Copy link
Author

visorsz commented Sep 12, 2019

Hi @scrthq - Thank you for considering my suggestion. Unfortunate that we can not use the Gmail API before the ToC is accepted. Gmail setting function would still be very nice to have tho!

scrthq added a commit that referenced this issue Sep 13, 2019
… updates

## 2.32.0 - 2019-09-12

* [Issue #229](#229)
  * Added: `Update-GSGmailLanguageSettings` and `Get-GSGmailLanguageSettings` functions to update/get a users default language settings in Gmail.
* [Issue #231](#231)
  * Added: `Update-GSCalenderSubscription` function to updated existing calendar subscriptions.
  * Removed: Default values for the following parameters on `Add-GSCalendarSubscription` to prevent automatically adding notifications for new CalendarList entries (subscriptions):
    * `DefaultNotificationType`
    * `DefaultNotificationMethod`
    * `DefaultReminderMethod`
    * `DefaultReminderMinutes`
  * Added: `Notifications` and `Reminders` parameters to `Add-GSCalenderSubscription` and `Update-GSCalenderSubscription`
  * Added: `Reminders` parameter to `New-GSCalendarEvent` and `Update-GSCalendarEvent` functions to set custom reminders on calendar events.
  * Added: `Add-GSCalendarEventReminder` and `Add-GSCalendarNotification` helper functions.
  * Updated: `DisableReminder` switch parameter name on `New-GSCalendarEvent` and `Update-GSCalendarEvent` functions to `DisableDefaultReminder` to better align with what that actually effects (default reminder inheritance only, not reminder overrides). The previous parameter name has been set as an alias to maintain backwards compatibility.
  * Added: `RemoveAllReminders` parameter to `Update-GSCalendarEvent` to remove all custom reminders and disable calendar inheritance.
* [Issue #232](#232)
  * Added: `Visibility` parameter on `New-GSCalendarEvent` and `Update-GSCalendarEvent` to set the visibility of a calendar event.
* Miscellaneous
  * Forced `Type` parameter values to lower on the `Add-GSUser*` helper functions to ensure case senstive field matches whats expected.
  * Updated Google .NET SDKs to latest versions.
  * Updated and corrected a LOT of comment based function help.
  * Added function help tests to validate that functions contain expected help content.
@scrthq scrthq mentioned this issue Sep 13, 2019
scrthq added a commit that referenced this issue Sep 13, 2019
## 2.32.0 - 2019-09-12

* [Issue #229](#229)
  * Added: `Update-GSGmailLanguageSettings` and `Get-GSGmailLanguageSettings` functions to update/get a users default language settings in Gmail.
* [Issue #231](#231)
  * Added: `Update-GSCalenderSubscription` function to updated existing calendar subscriptions.
  * Removed: Default values for the following parameters on `Add-GSCalendarSubscription` to prevent automatically adding notifications for new CalendarList entries (subscriptions):
    * `DefaultNotificationType`
    * `DefaultNotificationMethod`
    * `DefaultReminderMethod`
    * `DefaultReminderMinutes`
  * Added: `Notifications` and `Reminders` parameters to `Add-GSCalenderSubscription` and `Update-GSCalenderSubscription`
  * Added: `Reminders` parameter to `New-GSCalendarEvent` and `Update-GSCalendarEvent` functions to set custom reminders on calendar events.
  * Added: `Add-GSCalendarEventReminder` and `Add-GSCalendarNotification` helper functions.
  * Updated: `DisableReminder` switch parameter name on `New-GSCalendarEvent` and `Update-GSCalendarEvent` functions to `DisableDefaultReminder` to better align with what that actually effects (default reminder inheritance only, not reminder overrides). The previous parameter name has been set as an alias to maintain backwards compatibility.
  * Added: `RemoveAllReminders` parameter to `Update-GSCalendarEvent` to remove all custom reminders and disable calendar inheritance.
* [Issue #232](#232)
  * Added: `Visibility` parameter on `New-GSCalendarEvent` and `Update-GSCalendarEvent` to set the visibility of a calendar event.
* Miscellaneous
  * Forced `Type` parameter values to lower on the `Add-GSUser*` helper functions to ensure case senstive field matches whats expected.
  * Updated Google .NET SDKs to latest versions.
  * Updated and corrected a LOT of comment based function help.
  * Added function help tests to validate that functions contain expected help content.
@scrthq
Copy link
Member

scrthq commented Sep 13, 2019

hey @visorsz - This is now available in v2.32.0 as Update-GSGmailLanguageSettings. Try it out and let me know! You can also get a user's current language settings with Get-GSGmailLanguageSettings.

@scrthq scrthq closed this as completed Sep 13, 2019
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