SCRT-HQ / PSGSuite

Powershell module for Google / G Suite API calls wrapped in handy functions. Authentication is established using a service account via P12 key to negate the consent popup and allow for greater handsoff automation capabilities
https://psgsuite.io/
Apache License 2.0
235 stars 67 forks source link

Conflicting requests. Please try again [409] #348

Open AshleyJackson opened 3 years ago

AshleyJackson commented 3 years ago

Describe the bug When offboarding a user an error pops up stating that there are conflicting requests.

To Reproduce Steps to reproduce the behavior:

  1. Import valid config
  2. Invoke-GSUserOffboarding -User USEREMAIL@DOMAIN.com.au -Options Full -DestinationOrgUnit '/Former Employees'

Expected behavior Work through the Offboarding steps to deactivate a user, more specifically this: https://github.com/SCRT-HQ/PSGSuite/blob/main/PSGSuite/Public/Users/Invoke-GSUserOffboarding.ps1

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Was able to scrape this from the log files: [2021-03-29T14:16:07.9479205+10:00] Starting offboard of user: USEREMAIL@DOMAIN.com.au [2021-03-29T14:16:07.9800594+10:00] [USEREMAIL@DOMAIN.com.au] Updating user Update-GSUser : Exception calling "Execute" with "0" argument(s): "Google.Apis.Requests.RequestError Conflicting requests. Please try again [409] Errors [Message[Conflicting requests. Please try again] Location[ - ] Reason[conflict] Domain[global]] "At C:\Program Files\WindowsPowerShell\Modules\PSGSUITE\2.36.4\PSGSuite.psm1:27624 char:17 Update-GSUser @_user @updateParams | Format-List Prim ... CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Update-GSUser