IdentityService issue on APS 1.8.1

cancel
Showing results for 
Search instead for 
Did you mean: 
openpj
Moderator
Moderator

IdentityService issue on APS 1.8.1

Jump to solution

Hi,

I have implemented a custom REST endpoint on APS 1.8.1 and it is currently using the following instruction:

List<User> users = identityService.createUserQuery().list();

It is returning an empty array, no results from the APS application.

Before implementing the REST logic I have implemented a dedicated JUnit test in the Activiti Maven SDK module where I use exactly the same query but in this case is returning correctly all the users I created in the Before annotated method.

I think that I'm missing something, do you have any ideas about how to retrieve all the users from a custom REST endpoint?

Thank you for any help on this :-P

1 Solution

Accepted Solutions
openpj
Moderator
Moderator

Re: IdentityService issue on APS 1.8.1

Jump to solution

I have raised a ticket to the Alfresco Support and they said that the IdentityService of Activiti can't be used inside Alfresco Process Services.

The supported way is to use the new services available such as UserService and GroupService.

Hope this helps other community members :-P

View solution in original post

1 Reply
openpj
Moderator
Moderator

Re: IdentityService issue on APS 1.8.1

Jump to solution

I have raised a ticket to the Alfresco Support and they said that the IdentityService of Activiti can't be used inside Alfresco Process Services.

The supported way is to use the new services available such as UserService and GroupService.

Hope this helps other community members :-P