Forum Discussion

paulpascha's avatar
paulpascha
Bronze Contributor
Mar 15, 2018

Throttling: App credentials VS Service Account

We're currently implementing a solution where we would like to avoid being Throttled. We decided to use a Service Account because our solution consists of write-operations to Taxonomy which are not supported when using App-only permissions.

 

Do we run the risk of getting throttled faster when making use of a Service Account compared to making use of App-credentials?

 

The Guidance in the article below seems to suggest throttling behavior is different when using App-crredentials compared to a Service Account ("normal" user).  As described in the article we are filling UserAgent for each CSOM query being executed but the article also recommends to register and use AppID/Title whenever possible (which are involved automatically I guess when running in a Add-in context)

 

https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online

  • As noted in the documentation, using app ID is recommended where suitable. This does not, however, mean that you can't use also service accounts, as having an app ID registered does not mean that you'd be running in app-only mode. 

     

    We do not have any specifics on the detailed differences or impact of having app id or not

     

  • As noted in the documentation, using app ID is recommended where suitable. This does not, however, mean that you can't use also service accounts, as having an app ID registered does not mean that you'd be running in app-only mode. 

     

    We do not have any specifics on the detailed differences or impact of having app id or not

     

    • Silas Ezekiels's avatar
      Silas Ezekiels
      Copper Contributor

      Hi Vesa,

      My query is related to migrating content to SPoL using service accounts and an OTS migration tool.

      I would like to know why Microsoft recommend us to use appID registration and traffic decoration if you are not clear on the differences/benefits/impacts?

      Also, please can you confirm if there is a difference/reduction in throttling if an access token is used to make API calls to Azure? The migration app claims that this reduces the throttling MS applies to SharePoint migration activities.

      Thanks

      • VesaJuvonen's avatar
        VesaJuvonen
        Icon for Microsoft rankMicrosoft

        Silas Ezekiels 

         

        You get best possible performance and capacity when app-id is used with the decoration.

         

        Using access token does indeed reduce throttling in the migration cases or in general.

Resources