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

[Request] Cancel Classroom student guardian invitations #159

Closed
Foggy2 opened this issue Mar 6, 2019 · 4 comments
Closed

[Request] Cancel Classroom student guardian invitations #159

Foggy2 opened this issue Mar 6, 2019 · 4 comments
Assignees

Comments

@Foggy2
Copy link
Contributor

Foggy2 commented Mar 6, 2019

Is your feature request related to a problem? Please describe.
I am implementing some logic to automatically manage guardians in Google Classroom. I can create guardian invitations with New-GSStudentGuardianInviation and I can remove guardians once they have accepted the invitation with Remove-GSStudentGuardian. However, if the need arises it does not appear that I can cancel a pending guardian invitation.

Describe the solution you'd like
Add a function to update a 'pending' student guardian invitation to 'complete'. Per this API page https://developers.google.com/classroom/reference/rest/v1/userProfiles.guardianInvitations/patch

A new function called Update-GSStudentGuardianInvitation is probably what is needed in this instance. Which lets you update the status value.

@scrthq scrthq self-assigned this Mar 6, 2019
@scrthq
Copy link
Member

scrthq commented Mar 6, 2019

Hey @Foggy2 - I'm on it! Since the only action for that API is to perform that action, what are your thoughts on Revoke-GSStudentGuardianInvitation?

@Foggy2
Copy link
Contributor Author

Foggy2 commented Mar 6, 2019

Hey @scrthq Sounds good to me!

@ghost ghost added the work in progress label Mar 6, 2019
@scrthq scrthq closed this as completed in 6bd5fb4 Mar 6, 2019
scrthq added a commit that referenced this issue Mar 6, 2019
## 2.24.0

* [Issue #159](#159) - [@Foggy2](https://github.com/Foggy2)
  * Added: `Revoke-GSStudentGuardianInvitation` to revoke student guardian invitations (Classroom API)
@ghost ghost removed the work in progress label Mar 6, 2019
@scrthq
Copy link
Member

scrthq commented Mar 6, 2019

Deploying shortly in v2.24.0!

https://dev.azure.com/scrthq/SCRT%20HQ/_build/results?buildId=191

@scrthq
Copy link
Member

scrthq commented Mar 6, 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