I was giving all permissions to the admin user . But what difference it makes when i set authorization type = AUTH_TYPE_GLOBAL or AUTH_TYPE_GRANT ?
Authorization and Authorization-precedence.
AuthorizationEntity userAdminAuth = new AuthorizationEntity(Authorization.AUTH_TYPE_GLOBAL);
userAdminAuth.setGroupId(Groups.CAMUNDA_ADMIN);
userAdminAuth.setResource(resource);
userAdminAuth.setResourceId(ANY);
userAdminAuth.addPermission(ALL);
AuthorizationEntity userAdminAuth = new AuthorizationEntity(Authorization.AUTH_TYPE_GRANT);
userAdminAuth.setGroupId(Groups.CAMUNDA_ADMIN);
userAdminAuth.setResource(resource);
userAdminAuth.setResourceId(ANY);
userAdminAuth.addPermission(ALL);
As per docs, A Group authorization precedes over a GLOBAL authorization. What happens if I set the AUTH_TYPE_GLOBAL to the group itself?
Admin user should have authorization type of AUTH_TYPE_GRANT or AUTH_TYPE_GLOBAL in order to have full access to perform any actions?