Table of Contents

Codeunit "SharePoint Auth."

ID 9142
Namespace: System.Integration.Sharepoint

Provides functionality for creating means for authorizing HTTP requests made to SharePoint REST API.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

CreateAuthorizationCode

Creates an authorization mechanism with authentication code.

procedure CreateAuthorizationCode(EntraTenantId: Text, ClientId: Text, ClientSecret: SecretText, Scope: Text): Interface "SharePoint Authorization"

Parameters

Name Type Description
EntraTenantId Text

Microsoft Entra tenant ID

ClientId Text

The Application (client) ID that the Azure portal - App registrations experience assigned to your app.

ClientSecret SecretText

The Application (client) secret configured in the "Azure Portal - Certificates & Secrets".

Scope Text

A scope that you want the user to consent to.

Returns

Type Description
System.Integration.Sharepoint."SharePoint Authorization"

Codeunit instance implementing authorization interface

CreateAuthorizationCode

Creates an authorization mechanism with authentication code.

procedure CreateAuthorizationCode(EntraTenantId: Text, ClientId: Text, ClientSecret: SecretText, Scopes: List of [Text]): Interface "SharePoint Authorization"

Parameters

Name Type Description
EntraTenantId Text

Microsoft Entra tenant ID

ClientId Text

The Application (client) ID that the Azure portal - App registrations experience assigned to your app.

ClientSecret SecretText

The Application (client) secret configured in the "Azure Portal - Certificates & Secrets".

Scopes List of [Text]

A list of scopes that you want the user to consent to.

Returns

Type Description
System.Integration.Sharepoint."SharePoint Authorization"

Codeunit instance implementing authorization interface

CreateClientCredentials

Creates an authorization mechanism with the Client Credentials Grant Flow.

procedure CreateClientCredentials(AadTenantId: Text, ClientId: Text, Certificate: SecretText, CertificatePassword: SecretText, Scope: Text): Interface "SharePoint Authorization"

Parameters

Name Type Description
AadTenantId Text

Azure Active Directory tenant ID

ClientId Text

The Application (client) ID that the Azure portal - App registrations experience assigned to your app.

Certificate SecretText

The Base64-encoded certificate for the Application (client) configured in the Azure Portal - Certificates & Secrets.

CertificatePassword SecretText

Password for the certificate.

Scope Text

A scope that you want the user to consent to.

Returns

Type Description
System.Integration.Sharepoint."SharePoint Authorization"

Codeunit instance implementing authorization interface

CreateClientCredentials

Creates an authorization mechanism with the Client Credentials Grant Flow.

procedure CreateClientCredentials(AadTenantId: Text, ClientId: Text, Certificate: SecretText, CertificatePassword: SecretText, Scopes: List of [Text]): Interface "SharePoint Authorization"

Parameters

Name Type Description
AadTenantId Text

Azure Active Directory tenant ID

ClientId Text

The Application (client) ID that the Azure portal - App registrations experience assigned to your app.

Certificate SecretText

The Base64-encoded certificate for the Application (client) configured in the Azure Portal - Certificates & Secrets.

CertificatePassword SecretText

Password for the certificate.

Scopes List of [Text]

A list of scopes that you want the user to consent to.

Returns

Type Description
System.Integration.Sharepoint."SharePoint Authorization"

Codeunit instance implementing authorization interface

See also