in connectors/sources/sharepoint_server.py [0:0]
def get_default_configuration(cls):
"""Get the default configuration for SharePoint
Returns:
dictionary: Default configuration.
"""
return {
"authentication": {
"label": "Authentication mode",
"order": 1,
"type": "str",
"options": [
{"label": "Basic", "value": BASIC_AUTH},
{"label": "NTLM", "value": NTLM_AUTH},
],
"display": "dropdown",
"value": BASIC_AUTH,
},
"username": {
"label": "SharePoint Server username",
"order": 2,
"type": "str",
},
"password": {
"label": "SharePoint Server password",
"sensitive": True,
"order": 3,
"type": "str",
},
"host_url": {
"label": "SharePoint host",
"order": 4,
"type": "str",
},
"site_collections": {
"display": "textarea",
"label": "Comma-separated list of SharePoint site collections to index",
"order": 5,
"type": "list",
"required": True,
},
"ssl_enabled": {
"display": "toggle",
"label": "Enable SSL",
"order": 6,
"type": "bool",
"value": False,
},
"ssl_ca": {
"depends_on": [{"field": "ssl_enabled", "value": True}],
"label": "SSL certificate",
"order": 7,
"type": "str",
},
"retry_count": {
"default_value": RETRIES,
"display": "numeric",
"label": "Retries per request",
"order": 8,
"required": False,
"type": "int",
"ui_restrictions": ["advanced"],
},
"use_text_extraction_service": {
"display": "toggle",
"label": "Use text extraction service",
"order": 9,
"tooltip": "Requires a separate deployment of the Elastic Text Extraction Service. Requires that pipeline settings disable text extraction.",
"type": "bool",
"ui_restrictions": ["advanced"],
"value": False,
},
"use_document_level_security": {
"display": "toggle",
"label": "Enable document level security",
"order": 9,
"tooltip": "Document level security ensures identities and permissions set in your SharePoint Server are mirrored in Elasticsearch. This enables you to restrict and personalize read-access users and groups have to documents in this index. Access control syncs ensure this metadata is kept up to date in your Elasticsearch documents.",
"type": "bool",
"value": False,
},
"fetch_unique_list_permissions": {
"depends_on": [{"field": "use_document_level_security", "value": True}],
"display": "toggle",
"label": "Fetch unique list permissions",
"order": 10,
"tooltip": "Enable this option to fetch unique list permissions. This setting can increase sync time. If this setting is disabled a list will inherit permissions from its parent site.",
"type": "bool",
"value": True,
},
"fetch_unique_list_item_permissions": {
"depends_on": [{"field": "use_document_level_security", "value": True}],
"display": "toggle",
"label": "Fetch unique list item permissions",
"order": 11,
"tooltip": "Enable this option to fetch unique list item permissions. This setting can increase sync time. If this setting is disabled a list item will inherit permissions from its parent site.",
"type": "bool",
"value": True,
},
}