def by_external_group_id(self,external_group_id: str) -> ExternalGroupItemRequestBuilder:
        """
        Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity.
        param external_group_id: The unique identifier of externalGroup
        Returns: ExternalGroupItemRequestBuilder
        """
        if external_group_id is None:
            raise TypeError("external_group_id cannot be null.")
        from .item.external_group_item_request_builder import ExternalGroupItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["externalGroup%2Did"] = external_group_id
        return ExternalGroupItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity.
        param external_group_id: The unique identifier of externalGroup
        Returns: ExternalGroupItemRequestBuilder
        
msgraph/generated/connections/item/groups/groups_request_builder.py