mbegan / Okta-PSModule

Okta API Powershell Wrapper Module
Other
102 stars 31 forks source link

New function oktaUpdateGroupProfilebyID #42

Open AWBbox opened 5 years ago

AWBbox commented 5 years ago

The new function oktaUpdateGroupProfilebyID allows for the name and/or description of a group to be changed by specifying its unique ID.

Okta's API dictates that for this specific put request all details in the profile must be specified, if any are absent then that field will become blank https://developer.okta.com/docs/api/resources/groups/#update-group

Therefore I have ensured that the name and/or description strings must be provided and if one is absent the existing value will be retrieved to be sent in the put request. If neither are specified then an error will be thrown.