Initial guest user support

This commit is contained in:
Ross Scroggs
2026-02-24 14:45:03 -08:00
parent 7e7b8416a4
commit 8dbc455407
3 changed files with 16 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
7.34.07 7.34.07
Added the following command to create a guest user.
* See: https://support.google.com/a/answer/16558545?hl=en
```
gam create guestuser <EmailAddress>
```
Added the following items to `<UserFieldName>`: Added the following items to `<UserFieldName>`:
* `guestaccountinfo` - Additional guest-related metadata fields * `guestaccountinfo` - Additional guest-related metadata fields
* `isguestuser` - Indicates if the inserted user is a guest * `isguestuser` - Indicates if the inserted user is a guest

View File

@@ -46011,7 +46011,10 @@ def doCreateGuestUser():
result = callGAPI(cd.users(), 'createGuest', result = callGAPI(cd.users(), 'createGuest',
throwReasons=[GAPI.FAILED_PRECONDITION], throwReasons=[GAPI.FAILED_PRECONDITION],
body=body) body=body)
entityActionPerformed([Ent.GUEST_USER, result['primaryGuestEmail']]) entityActionPerformed([Ent.GUEST_USER, body['primaryGuestEmail']])
Ind.Increment()
showJSON(None, result)
Ind.Decrement()
except (GAPI.failedPrecondition) as e: except (GAPI.failedPrecondition) as e:
entityActionFailedExit([Ent.GUEST_USER, body['primaryGuestEmail']], str(e)) entityActionFailedExit([Ent.GUEST_USER, body['primaryGuestEmail']], str(e))

View File

@@ -12,6 +12,12 @@ See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Ins
### 7.34.07 ### 7.34.07
Added the following command to create a guest user.
* See: https://support.google.com/a/answer/16558545?hl=en
```
gam create guestuser <EmailAddress>
```
Added the following items to `<UserFieldName>`: Added the following items to `<UserFieldName>`:
* `guestaccountinfo` - Additional guest-related metadata fields * `guestaccountinfo` - Additional guest-related metadata fields
* `isguestuser` - Indicates if the inserted user is a guest * `isguestuser` - Indicates if the inserted user is a guest