Retrieves mail group information
GET/v2/groups/:id_or_email
Gets the basic information of a mail group by its ID or email address.
Request
Path parameters
- id:
- email:
Response
- NORMAL: Normal
- FREEZE: Frozen
- ANYONE:
- SAME_ORGANIZATION:
- GROUP_MEMBER:
- ONLY_ALLOWED_SENDER:
- GROUP_MEMBER_AND_ALLOWED_SENDER:
- STATIC: Static group
- DEPARTMENT: Department group
- DYNAMIC: Dynamic group
- USERGROUP: User group
- DING: DingTalk group
id
Group name.
Group email address.
Status. Only the domain administrator or authorized applications can modify it.
Possible values: [NORMAL, FREEZE]
Creation time.
Number of first-level static members.
Administrator. Can only be modified by an administrator or an authorized application. (Optional field: returned when you add the $select=admins query parameter to the URL. To query multiple fields, separate them with commas.)
Indicates whether message delivery review is required. This field is accessible only to administrators or authorized applications and can be modified. (Optional field: It is returned when the $select=needMessageDeliveryReview query parameter is added to the URL. For multiple fields, use commas to separate them.)
Message delivery reviewer, accessible and modifiable only by administrators or authorized applications. (Optional field: returned when the query parameter $select=messageDeliveryReviewers is added to the URL. Separate multiple fields with commas.)
The persons allowed to send messages to this group. Only accessible and modifiable by administrators or authorized applications. (Optional field: returns when the $select=allowedSenders query parameter is added to the URL. Use commas to separate multiple fields.)
Specifies who can send messages to this group. Accessible and modifiable only by administrators or authorized applications. (Optional field: returned by adding the $select=allowedSenderPolicy query parameter in the URL. Use commas to separate multiple fields.)
Possible values: [ANYONE, SAME_ORGANIZATION, GROUP_MEMBER, ONLY_ALLOWED_SENDER, GROUP_MEMBER_AND_ALLOWED_SENDER]
Group type. Only accessible by administrators or authorized applications. (Optional field: returned by adding the $select=type query parameter in the URL. Separate multiple fields with commas.)
Possible values: [STATIC, DEPARTMENT, DYNAMIC, USERGROUP, DING]
Dynamic group member matching rules. Only accessible and modifiable by administrators or authorized applications. (Optional field: returns when the $select=dynamicMatchRule query parameter is added to the URL. For multiple fields, use English commas to separate them.)
Maximum member limit, up to 100000. Only the administrator or authorized applications can modify it (Optional field: returned after adding the $select=itemCountLimit query parameter in the URL. For multiple fields, separate them with commas).
Whether to include external members (Optional field: returned when the query parameter $select=containOuterMember is added to the URL. Use commas to separate multiple fields if needed.)
Department of the user (optional field: returned when the $select=departmentId query parameter is added to the URL; separate multiple fields with commas).
Whether to display this group in the address book. Only administrators or authorized applications can access it; can be modified. (Optional field: returned when the $select=isHidden query parameter is added to the URL; separate multiple fields with commas.)
Creator email, accessible only by administrators or authorized applications. (Optional field: Return by adding the $select=creator query parameter in the URL; separate multiple fields with commas.)
Time of the last received message ( Optional field: returned when the $select=lastRecvMessageTime query parameter is added in the URL; use commas to separate multiple fields).
Ignores the auto-reply of members. Accessible and modifiable only by administrators or authorized applications. (Optional field: returned by adding the $select=ignoreAutoReplyOfMember query parameter in the URL. Use commas to separate multiple fields.)
Indicates whether to send a notification letter to newly added members. Accessible only by administrators or authorized applications, modifiable. (Optional field: Returned by adding the $select=sendMessageToNewMember query parameter in the URL. Separate multiple fields with commas.)
Whether administrator approval is required when a member leaves. Only accessible by domain administrators or authorized applications. Modifiable. (Optional field: returned when the $select=requireApprovalWhenMemberLeaves query parameter is added to the URL. Use English commas to separate multiple fields.)
Whether the member is visible only to the administrator. Only the domain administrator or an authorized application can modify it (Optional field: returned after adding the $select=memberOnlyVisibleToAdmin query parameter in the URL. Use commas to separate multiple fields).
Errors
400 | Bad Request |
401 | Access is unauthorized. Please check whether the correct authorization token is passed. |
403 | No API access permission. Please complete the relevant authorization on the application management page of the domain administrator. |
404 | Not Found |