You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: iambic/plugins/v0_1_0/google_workspace/user/models.py
+33-5Lines changed: 33 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,30 @@ class WorkspaceUser(BaseModel, ExpiryModel):
45
45
description="Holds the given and family names of the user, and the read-only fullName value. The maximum number of characters in the givenName and in the familyName values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the administration help center. Maximum allowed data size for this field is 1KB.",
description="Output only. Is enrolled in 2-step verification (Read-only)",
56
+
)
57
+
58
+
is_admin: Optional[bool] =Field(
59
+
alias="isAdmin",
60
+
description="Output only. Indicates a user with super admininistrator privileges. The isAdmin property can only be edited in the Make a user an administrator operation ( makeAdmin method). If edited in the user insert or update methods, the edit is ignored by the API service.",
61
+
)
62
+
63
+
is_delegated_admin: Optional[bool] =Field(
64
+
alias="isDelegatedAdmin",
65
+
description="Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the Admin console.",
66
+
)
67
+
68
+
suspended: Optional[bool] =Field(
69
+
description="Indicates if user is suspended.",
70
+
)
71
+
48
72
domain: str=Field(
49
73
description="this is not direct from user object from google response, but since user maps to a domain, we need to keep track of this information",
50
74
)
@@ -95,11 +119,15 @@ async def get_user_template(
95
119
# members = await get_group_members(service, group)
0 commit comments