This document describes how to allow Office365 API's server to server access for emakin rest clients.
Creating Service Account
Before allowing the access you need to register emakin as application. This step is already configured for cloud configuration and required only for on-premises.
...