cancel
Showing results for 
Search instead for 
Did you mean: 

IdentityService issue on APS 1.8.1

openpj
Elite Collaborator
Elite Collaborator

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 😛

1 ACCEPTED ANSWER

openpj
Elite Collaborator
Elite Collaborator

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 😛

View answer in original post

1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator

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 😛