class SiteUserGroupInfo
A data class representing SharePoint site user group information in the Microsoft Online SharePoint Tenant Administration context.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/tenant/administration/site_user_group_info.py
4 - 7
simple
Purpose
This class serves as a data transfer object (DTO) for SharePoint site user group information within the Office365 SharePoint Tenant Administration API. It inherits from ClientValue, which is a base class for client-side value objects that can be serialized and sent to/from SharePoint REST APIs. The class provides the entity type name used for proper serialization and deserialization when communicating with SharePoint's tenant administration services.
Source Code
class SiteUserGroupInfo(ClientValue):
@property
def entity_type_name(self):
return "Microsoft.Online.SharePoint.TenantAdministration.SiteUserGroupInfo"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
__init__: Inherits constructor from ClientValue base class. The base class constructor typically accepts keyword arguments that map to properties of the SharePoint entity. No explicit constructor is defined in this class, so it uses the parent class constructor which likely accepts arbitrary keyword arguments representing the entity's properties.
Return Value
Instantiation returns a SiteUserGroupInfo object that represents a SharePoint site user group entity. The entity_type_name property returns a string 'Microsoft.Online.SharePoint.TenantAdministration.SiteUserGroupInfo' which is used internally by the Office365 SDK for proper type identification during API communication.
Class Interface
Methods
@property entity_type_name(self) -> str
property
Purpose: Returns the fully qualified entity type name used by SharePoint's tenant administration API for proper type identification during serialization and deserialization
Returns: String value 'Microsoft.Online.SharePoint.TenantAdministration.SiteUserGroupInfo' representing the entity type in the SharePoint object model
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Read-only property that returns the SharePoint entity type identifier for this class | instance |
Dependencies
office365-runtime
Required Imports
from office365.runtime.client_value import ClientValue
Usage Example
from office365.runtime.client_value import ClientValue
from office365.sharepoint.tenant.administration.site_user_group_info import SiteUserGroupInfo
# Instantiate with properties (inherited from ClientValue)
group_info = SiteUserGroupInfo()
# Access the entity type name (used internally by SDK)
entity_type = group_info.entity_type_name
print(entity_type) # Output: Microsoft.Online.SharePoint.TenantAdministration.SiteUserGroupInfo
# Typically used as part of larger Office365 SDK operations
# Example: Retrieved from SharePoint API calls
# from office365.sharepoint.client_context import ClientContext
# ctx = ClientContext(site_url).with_credentials(credentials)
# site_groups = ctx.web.site_groups.get().execute_query()
# for group in site_groups:
# # group would be of type SiteUserGroupInfo or similar
Best Practices
- This class is primarily used internally by the Office365 SDK and should not typically be instantiated directly by end users
- The entity_type_name property is used for proper serialization/deserialization and should not be modified
- When working with SharePoint user groups, retrieve instances through the Office365 SDK's API methods rather than creating them manually
- This class inherits from ClientValue, which provides serialization capabilities for REST API communication
- The class follows the Office365 SDK pattern where entity type names match the server-side type definitions
- No state management or side effects - this is a simple data container class
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class GroupSiteInfo 79.6% similar
-
class SiteAdministratorsInfo 79.2% similar
-
class SiteInfoForSitePicker 76.0% similar
-
class GroupCreationInformation 75.8% similar
-
class GroupCreationInformation_v1 73.6% similar