Method: groups.list
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি ডোমেনের বা ব্যবহারকারীর একটি userKey (পৃষ্ঠাযুক্ত) দেওয়া সমস্ত গ্রুপ পুনরুদ্ধার করে।
HTTP অনুরোধ
GET https://admin.googleapis.com/admin/directory/v1/groups
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
customer | string গ্রাহকের Google Workspace অ্যাকাউন্টের জন্য অনন্য আইডি। একটি মাল্টি-ডোমেন অ্যাকাউন্টের ক্ষেত্রে, একটি গ্রাহকের জন্য সমস্ত গ্রুপ আনতে, domain পরিবর্তে এই ক্ষেত্রটি ব্যবহার করুন৷ আপনি আপনার অ্যাকাউন্টের customerId প্রতিনিধিত্ব করতে my_customer alias ব্যবহার করতে পারেন। ব্যবহারকারীর সম্পদের অংশ হিসাবে customerId ফেরত দেওয়া হয়। আপনাকে অবশ্যই customer বা domain প্যারামিটার প্রদান করতে হবে। |
domain | string ডোমেইন নাম। শুধুমাত্র একটি ডোমেইন থেকে গ্রুপ পেতে এই ক্ষেত্রটি ব্যবহার করুন। একটি গ্রাহক অ্যাকাউন্টের জন্য সমস্ত ডোমেন ফেরত দিতে, পরিবর্তে customer ক্যোয়ারী প্যারামিটার ব্যবহার করুন৷ |
maxResults | integer ফলাফলের সর্বাধিক সংখ্যা ফেরত দিতে। সর্বাধিক অনুমোদিত মান হল 200৷ |
orderBy | enum ( OrderBy ) ফলাফল বাছাই করার জন্য ব্যবহার করার জন্য কলাম |
pageToken | string তালিকার পরবর্তী পৃষ্ঠা নির্দিষ্ট করতে টোকেন |
query | string ক্যোয়ারী স্ট্রিং অনুসন্ধান. ফর্ম হতে হবে" "। সম্পূর্ণ ডকুমেন্টেশন https://developers.google.com/workspace/admin/directory/v1/guides/search-groups এ রয়েছে |
sortOrder | enum ( SortOrder ) ঊর্ধ্বক্রম বা অবরোহ ক্রমে ফলাফল ফেরত দিতে হবে কিনা। শুধুমাত্র যখন অর্ডারবাই ব্যবহার করা হয় তখনই ব্যবহার |
userKey | string ব্যবহারকারীর ইমেল বা অপরিবর্তনীয় আইডি যদি শুধুমাত্র সেই গোষ্ঠীগুলিকে তালিকাভুক্ত করা হয়, প্রদত্ত ব্যবহারকারী একজন সদস্য। এটি একটি আইডি হলে, এটি ব্যবহারকারী অবজেক্টের আইডির সাথে মেলে। customer প্যারামিটারের সাথে ব্যবহার করা যাবে না। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে নিম্নলিখিত কাঠামোর সাথে ডেটা থাকে:
JSON প্রতিনিধিত্ব |
---|
{
"kind": string,
"etag": string,
"groups": [
{
object (Group )
}
],
"nextPageToken": string
} |
ক্ষেত্র |
---|
kind | string এই ধরনের সম্পদ. |
etag | string সম্পদের ETag. |
groups[] | object ( Group ) গ্রুপ অবজেক্টের একটি তালিকা। |
nextPageToken | string এই ফলাফলের পরবর্তী পৃষ্ঠা অ্যাক্সেস করতে টোকেন ব্যবহার করা হয়। |
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://apps-apis.google.com/a/feeds/groups/
-
https://www.googleapis.com/auth/admin.directory.group
-
https://www.googleapis.com/auth/admin.directory.group.readonly
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
OrderBy
Enums |
---|
EMAIL | গ্রুপের ইমেইল। |
সাজানোর অর্ডার
Enums |
---|
ASCENDING | আরোহী ক্রম। |
DESCENDING | অবরোহী ক্রম। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Method: groups.list\n\nRetrieves all groups of a domain or of a user given a userKey (paginated).\n\n### HTTP request\n\n`GET https://admin.googleapis.com/admin/directory/v1/groups`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customer` | `string` The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](https://developers.google.com/workspace/admin/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. |\n| `domain` | `string` The domain name. Use this field to get groups from only one domain. To return all domains for a customer account, use the `customer` query parameter instead. |\n| `maxResults` | `integer` Maximum number of results to return. Max allowed value is 200. |\n| `orderBy` | `enum (`[OrderBy](/workspace/admin/directory/reference/rest/v1/groups/list#OrderBy)`)` Column to use for sorting results |\n| `pageToken` | `string` Token to specify next page in the list |\n| `query` | `string` Query string search. Should be of the form \"\". Complete documentation is at https: //developers.google.com/workspace/admin/directory/v1/guides/search-groups |\n| `sortOrder` | `enum (`[SortOrder](/workspace/admin/directory/reference/rest/v1/groups/list#SortOrder)`)` Whether to return results in ascending or descending order. Only of use when orderBy is also used |\n| `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 it's an ID, it should match with the ID of the user object. Cannot be used with the `customer` parameter. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"etag\": string, \"groups\": [ { object (/workspace/admin/directory/reference/rest/v1/groups#Group) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Kind of resource this is. |\n| `etag` | `string` ETag of the resource. |\n| `groups[]` | `object (`[Group](/workspace/admin/directory/reference/rest/v1/groups#Group)`)` A list of group objects. |\n| `nextPageToken` | `string` Token used to access next page of this result. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://apps-apis.google.com/a/feeds/groups/`\n- `\n https://www.googleapis.com/auth/admin.directory.group`\n- `\n https://www.googleapis.com/auth/admin.directory.group.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nOrderBy\n-------\n\n| Enums ||\n|---------|---------------------|\n| `EMAIL` | Email of the group. |\n\nSortOrder\n---------\n\n| Enums ||\n|--------------|-------------------|\n| `ASCENDING` | Ascending order. |\n| `DESCENDING` | Descending order. |"]]