Receiving Error that Scopes Exceeds the Allowed Maximum of 100

Overview

Deployed an Action that loops through over 100 permissions and calls the api.accessToken.addScope. The code throws the following error;

Error: The number of scopes exceeds the allowed maximum of 100.

Solution

The number of permissions that can be inserted within an Action is currently limited to 100. Please leave feedback for the product team to request an increase to this limit.