Unable to login after user reactivation

Certified Associate Developer

we are not able to login after user reactivation. We are using below code in one of our smart service implementation.

we deactivated user using below API code

UserService us = ServiceLocator.getUserService(sc);
us.deactivateUser(userId);

and reactivated user using below API code

us.reactivateUsers(userIdsArray)

Below is error we are getting in Jboss log file--

1,804 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite].[default]] (ajp-/144.226.142.14:8009-11) JBWEB000236: Servlet.service() for servlet default threw exception: com.appiancorp.suiteapi.common.exceptions.AppianRuntimeException: com.appiancorp.security.authz.AuthorizationException: The user [nb177866] does not have sufficient privileges to perform the requested action because they are not in any role. (APNX-1-4188-001)

Any help/pointers will be really appreciated.

OriginalPostID-188717

OriginalPostID-188717

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data