Skip to main content
hemanthkp724385
Inspiring
Oct 11, 2023 11:46 AM UTC
Question

PersonalizationUtilities - Plugin - Error (getdeactivatedusersby)

Facing an Issue with basic user, While I was trying to get inactivated user from custom Picker, It is throwing an error like insufficient privileges for basic User Login.

But for Administrator user type it is working fine and I have Updated that plugin to its recent version as well.

4 replies

Participating Frequently
Oct 11, 2023 12:05 PM UTC

We have faced this kind of issue, some of the functions need admin access to execute. We have done a workaround like executing this function in a node with its assignment as "Run as whoever designed this process model" and saving its results in a PV and passing it to the UIT. 

If anyone has a better solution, please let us know. 

hemanthkp724385
Inspiring
Oct 11, 2023 12:09 PM UTC

Thanks @dhivyam0001 !! Agreed , Let's' wait for others optimized solution if any !!

mathieud0001
Genius
Oct 11, 2023 12:39 PM UTC

Your only option if you want to call this from an interface would be to "wrap" this function with an API call that calls a Process Model with the node set to "Run as whoever designed this process model"

hemanthkp724385
Inspiring
Oct 11, 2023 1:07 PM UTC

Thanks @mathieud0001