1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="admin_directory_v1.html">Admin Directory API</a> . <a href="admin_directory_v1.groups.html">groups</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="admin_directory_v1.groups.aliases.html">aliases()</a></code> 79</p> 80<p class="firstline">Returns the aliases Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="#delete">delete(groupKey)</a></code></p> 84<p class="firstline">Delete Group</p> 85<p class="toc_element"> 86 <code><a href="#get">get(groupKey)</a></code></p> 87<p class="firstline">Retrieve Group</p> 88<p class="toc_element"> 89 <code><a href="#insert">insert(body)</a></code></p> 90<p class="firstline">Create Group</p> 91<p class="toc_element"> 92 <code><a href="#list">list(customer=None, orderBy=None, domain=None, pageToken=None, maxResults=None, sortOrder=None, query=None, userKey=None)</a></code></p> 93<p class="firstline">Retrieve all groups of a domain or of a user given a userKey (paginated)</p> 94<p class="toc_element"> 95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 96<p class="firstline">Retrieves the next page of results.</p> 97<p class="toc_element"> 98 <code><a href="#patch">patch(groupKey, body)</a></code></p> 99<p class="firstline">Update Group. This method supports patch semantics.</p> 100<p class="toc_element"> 101 <code><a href="#update">update(groupKey, body)</a></code></p> 102<p class="firstline">Update Group</p> 103<h3>Method Details</h3> 104<div class="method"> 105 <code class="details" id="delete">delete(groupKey)</code> 106 <pre>Delete Group 107 108Args: 109 groupKey: string, Email or immutable ID of the group (required) 110</pre> 111</div> 112 113<div class="method"> 114 <code class="details" id="get">get(groupKey)</code> 115 <pre>Retrieve Group 116 117Args: 118 groupKey: string, Email or immutable ID of the group (required) 119 120Returns: 121 An object of the form: 122 123 { # JSON template for Group resource in Directory API. 124 "nonEditableAliases": [ # List of non editable aliases (Read-only) 125 "A String", 126 ], 127 "kind": "admin#directory#group", # Kind of resource this is. 128 "description": "A String", # Description of the group 129 "name": "A String", # Group name 130 "adminCreated": True or False, # Is the group created by admin (Read-only) * 131 "directMembersCount": "A String", # Group direct members count 132 "id": "A String", # Unique identifier of Group (Read-only) 133 "etag": "A String", # ETag of the resource. 134 "email": "A String", # Email of Group 135 "aliases": [ # List of aliases (Read-only) 136 "A String", 137 ], 138 }</pre> 139</div> 140 141<div class="method"> 142 <code class="details" id="insert">insert(body)</code> 143 <pre>Create Group 144 145Args: 146 body: object, The request body. (required) 147 The object takes the form of: 148 149{ # JSON template for Group resource in Directory API. 150 "nonEditableAliases": [ # List of non editable aliases (Read-only) 151 "A String", 152 ], 153 "kind": "admin#directory#group", # Kind of resource this is. 154 "description": "A String", # Description of the group 155 "name": "A String", # Group name 156 "adminCreated": True or False, # Is the group created by admin (Read-only) * 157 "directMembersCount": "A String", # Group direct members count 158 "id": "A String", # Unique identifier of Group (Read-only) 159 "etag": "A String", # ETag of the resource. 160 "email": "A String", # Email of Group 161 "aliases": [ # List of aliases (Read-only) 162 "A String", 163 ], 164 } 165 166 167Returns: 168 An object of the form: 169 170 { # JSON template for Group resource in Directory API. 171 "nonEditableAliases": [ # List of non editable aliases (Read-only) 172 "A String", 173 ], 174 "kind": "admin#directory#group", # Kind of resource this is. 175 "description": "A String", # Description of the group 176 "name": "A String", # Group name 177 "adminCreated": True or False, # Is the group created by admin (Read-only) * 178 "directMembersCount": "A String", # Group direct members count 179 "id": "A String", # Unique identifier of Group (Read-only) 180 "etag": "A String", # ETag of the resource. 181 "email": "A String", # Email of Group 182 "aliases": [ # List of aliases (Read-only) 183 "A String", 184 ], 185 }</pre> 186</div> 187 188<div class="method"> 189 <code class="details" id="list">list(customer=None, orderBy=None, domain=None, pageToken=None, maxResults=None, sortOrder=None, query=None, userKey=None)</code> 190 <pre>Retrieve all groups of a domain or of a user given a userKey (paginated) 191 192Args: 193 customer: string, Immutable ID of the G Suite account. In case of multi-domain, to fetch all groups for a customer, fill this field instead of domain. 194 orderBy: string, Column to use for sorting results 195 Allowed values 196 email - Email of the group. 197 domain: string, Name of the domain. Fill this field to get groups from only this domain. To return all groups in a multi-domain fill customer field instead. 198 pageToken: string, Token to specify next page in the list 199 maxResults: integer, Maximum number of results to return. Default is 200 200 sortOrder: string, Whether to return results in ascending or descending order. Only of use when orderBy is also used 201 Allowed values 202 ASCENDING - Ascending order. 203 DESCENDING - Descending order. 204 query: string, Query string search. Should be of the form "". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-groups 205 userKey: string, Email or immutable Id of the user if only those groups are to be listed, the given user is a member of. If Id, it should match with id of user object 206 207Returns: 208 An object of the form: 209 210 { # JSON response template for List Groups operation in Directory API. 211 "nextPageToken": "A String", # Token used to access next page of this result. 212 "kind": "admin#directory#groups", # Kind of resource this is. 213 "etag": "A String", # ETag of the resource. 214 "groups": [ # List of group objects. 215 { # JSON template for Group resource in Directory API. 216 "nonEditableAliases": [ # List of non editable aliases (Read-only) 217 "A String", 218 ], 219 "kind": "admin#directory#group", # Kind of resource this is. 220 "description": "A String", # Description of the group 221 "name": "A String", # Group name 222 "adminCreated": True or False, # Is the group created by admin (Read-only) * 223 "directMembersCount": "A String", # Group direct members count 224 "id": "A String", # Unique identifier of Group (Read-only) 225 "etag": "A String", # ETag of the resource. 226 "email": "A String", # Email of Group 227 "aliases": [ # List of aliases (Read-only) 228 "A String", 229 ], 230 }, 231 ], 232 }</pre> 233</div> 234 235<div class="method"> 236 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 237 <pre>Retrieves the next page of results. 238 239Args: 240 previous_request: The request for the previous page. (required) 241 previous_response: The response from the request for the previous page. (required) 242 243Returns: 244 A request object that you can call 'execute()' on to request the next 245 page. Returns None if there are no more items in the collection. 246 </pre> 247</div> 248 249<div class="method"> 250 <code class="details" id="patch">patch(groupKey, body)</code> 251 <pre>Update Group. This method supports patch semantics. 252 253Args: 254 groupKey: string, Email or immutable ID of the group. If ID, it should match with id of group object (required) 255 body: object, The request body. (required) 256 The object takes the form of: 257 258{ # JSON template for Group resource in Directory API. 259 "nonEditableAliases": [ # List of non editable aliases (Read-only) 260 "A String", 261 ], 262 "kind": "admin#directory#group", # Kind of resource this is. 263 "description": "A String", # Description of the group 264 "name": "A String", # Group name 265 "adminCreated": True or False, # Is the group created by admin (Read-only) * 266 "directMembersCount": "A String", # Group direct members count 267 "id": "A String", # Unique identifier of Group (Read-only) 268 "etag": "A String", # ETag of the resource. 269 "email": "A String", # Email of Group 270 "aliases": [ # List of aliases (Read-only) 271 "A String", 272 ], 273 } 274 275 276Returns: 277 An object of the form: 278 279 { # JSON template for Group resource in Directory API. 280 "nonEditableAliases": [ # List of non editable aliases (Read-only) 281 "A String", 282 ], 283 "kind": "admin#directory#group", # Kind of resource this is. 284 "description": "A String", # Description of the group 285 "name": "A String", # Group name 286 "adminCreated": True or False, # Is the group created by admin (Read-only) * 287 "directMembersCount": "A String", # Group direct members count 288 "id": "A String", # Unique identifier of Group (Read-only) 289 "etag": "A String", # ETag of the resource. 290 "email": "A String", # Email of Group 291 "aliases": [ # List of aliases (Read-only) 292 "A String", 293 ], 294 }</pre> 295</div> 296 297<div class="method"> 298 <code class="details" id="update">update(groupKey, body)</code> 299 <pre>Update Group 300 301Args: 302 groupKey: string, Email or immutable ID of the group. If ID, it should match with id of group object (required) 303 body: object, The request body. (required) 304 The object takes the form of: 305 306{ # JSON template for Group resource in Directory API. 307 "nonEditableAliases": [ # List of non editable aliases (Read-only) 308 "A String", 309 ], 310 "kind": "admin#directory#group", # Kind of resource this is. 311 "description": "A String", # Description of the group 312 "name": "A String", # Group name 313 "adminCreated": True or False, # Is the group created by admin (Read-only) * 314 "directMembersCount": "A String", # Group direct members count 315 "id": "A String", # Unique identifier of Group (Read-only) 316 "etag": "A String", # ETag of the resource. 317 "email": "A String", # Email of Group 318 "aliases": [ # List of aliases (Read-only) 319 "A String", 320 ], 321 } 322 323 324Returns: 325 An object of the form: 326 327 { # JSON template for Group resource in Directory API. 328 "nonEditableAliases": [ # List of non editable aliases (Read-only) 329 "A String", 330 ], 331 "kind": "admin#directory#group", # Kind of resource this is. 332 "description": "A String", # Description of the group 333 "name": "A String", # Group name 334 "adminCreated": True or False, # Is the group created by admin (Read-only) * 335 "directMembersCount": "A String", # Group direct members count 336 "id": "A String", # Unique identifier of Group (Read-only) 337 "etag": "A String", # ETag of the resource. 338 "email": "A String", # Email of Group 339 "aliases": [ # List of aliases (Read-only) 340 "A String", 341 ], 342 }</pre> 343</div> 344 345</body></html>