App ID & App Secret
To use the workflow engine with SharePoint Online in the O365 cloud it is possible to use a normal account for accessing SharePoint.
But it is also possible to use "App Credentials". In this section we describe how to use them.
This is important so that the credentials in the workflow configurations are not personal credentials.
Log on to the SiteCollection that you want the Worklfow to access.
Navigate to the App registration form
Create a new AppID and AppSecret
Now you have to assign permissions to the new key
Use the ClientID as AppId
Insert the following XML to grant FullControl permissions to the key
Please make sure that the xml is correctly formatted, otherwise the authorizations will not be correctly assigned
<AppPermissionRequests AllowAppOnlyPolicy="true"> <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl"/> <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl"/> </AppPermissionRequests>
For more information about the xml https://dev.office.com/sharepoint/docs/sp-add-ins/add-in-permissions-in-sharepoint
If everything has been entered correctly, the result will look like this
Enter the AppID and AppSecret at _wfconfig.ps1
You can revoke and delete the AppCredentials at any time. All you have to do is remove them from the SiteCollection using the following link.