Netcentric / accesscontroltool

Rights and roles management for AEM made easy
Eclipse Public License 1.0
150 stars 92 forks source link

AuthorizableCreatorException: errorCode=error.command.add_remove.list_too_long, message=Too many products, users or groups in Add or Remove: max is 20 #753

Closed kwin closed 1 month ago

kwin commented 1 month ago

The following error can be observed under certain circumstances

13:44:45.147: ERROR: Could not process yaml files / e=biz.netcentric.cq.tools.actool.authorizableinstaller.AuthorizableCreatorException: java.io.IOException: Errors updating groups: 
...
[ActionCommandError [errorCode=error.command.add_remove.list_too_long, requestID=null, index=6, step=0, message=Too many products, users or groups in Add or Remove: max is 20, user=null], 
...
 for request POST https://usermanagement.adobe.io/v2/usermanagement/action/<orgId> HTTP/1.1
with payload:

...

{"do":[{"add":{"group":["<group0>",..."<group21>"],"user":"<someUserId>}]"

According to https://adobe-apiplatform.github.io/umapi-documentation/en/api/ActionsCmds.html

You can add a maximum of 10 memberships in one command entry.