SharepointOnlineCredentials
Credentials for SharePoint Online. Provide either the app-auth triple (tenant_name + client_id + client_secret) or the OAuth-user pair (user_id + optional connector_id). The auth_type field must match.
Properties
Name |
Type |
Description |
Notes |
|---|---|---|---|
auth_type |
str |
"app" for application credentials, "user" for delegated OAuth. |
[optional] [default to ‘app’] |
tenant_name |
str |
SharePoint tenant name (app auth only). |
[optional] |
client_id |
str |
Azure AD application client ID (app auth only). |
[optional] |
client_secret |
str |
Azure AD application client secret (app auth only). |
[optional] |
user_id |
str |
User ID owning the OAuth token (user auth only). |
[optional] |
connector_id |
str |
Optional connector ID when the user has more than one linked SharePoint connector. |
[optional] |
admin_enumerate_drives |
bool |
App auth only. When true, discovery additionally enumerates every drive in the tenant via /drives. Requires Files.Read.All / Sites.Read.All on the application. |
[optional] [default to False] |
Example
from h2ogpte.rest_async.models.sharepoint_online_credentials import SharepointOnlineCredentials
# TODO update the JSON string below
json = "{}"
# create an instance of SharepointOnlineCredentials from a JSON string
sharepoint_online_credentials_instance = SharepointOnlineCredentials.from_json(json)
# print the JSON string representation of the object
print(SharepointOnlineCredentials.to_json())
# convert the object into a dict
sharepoint_online_credentials_dict = sharepoint_online_credentials_instance.to_dict()
# create an instance of SharepointOnlineCredentials from a dict
sharepoint_online_credentials_from_dict = SharepointOnlineCredentials.from_dict(sharepoint_online_credentials_dict)