Create a request for an inactive user

Michaela-3
Tera Expert

Hi all,

we want to be able to create requests for an inactive user via portal - request models.
This should be possible for some weeks after the user was disabled to clean up the access rights,...
Unfortunately we can not use the oob-field 'active', because this is set automatically from another system.
So I created a customer field u_active, which is set by a script.

I changed the sys_property ‚glide.sc.request_for.query‘ to this value: 'active=true^ORu_active=true'

Now I - as a SN admin - can choose an inactive user (where u_active = true) in the request confirmation box.
But our ITIL users are not allowed to do this.

I did not find an ACL which prohibits the usage of inactive users.

What do I have to do to solve this issue?

Thanks for any suggestion.

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hey,

This is governed by Query business rule on the user table, try finding "user query" BR on sys_user table.

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

View solution in original post

5 REPLIES 5

Aman Kumar S
Kilo Patron

Hey,

This is governed by Query business rule on the user table, try finding "user query" BR on sys_user table.

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

Sometimes it can be that simple (if you know where to look at).

I modified the query in that BR:
var grq = current.addActiveQuery();
grq.addOrCondition('u_active', true);

And now it works like it should.

Thanks for your assistance! 🙂

Rightly said,

Glad to assist!

Best Regards
Aman Kumar