Service Desk Practitioners Forum
cancel

How to judge login account's workgroup in db rule in OVSD

Highlighted
lixiaoning
Trusted Contributor.

How to judge login account's workgroup in db rule in OVSD

Now I meet a problem when setting up db rule and ui rule,I want to judge the login account's workgroup,but no such parameter to chose. My ovsd version is 5.1,patch7.
My requirement is, when a person is manager, he can see all status of incident, and change it to any status. But if he is a user, he can only fllowing the process, for example,from open to analysis, he can't change it from open to completed.
1 REPLY
Sam decosta
Outstanding Contributor.

Re: How to judge login account's workgroup in db rule in OVSD

Hi,

You can create a Code field in person record.Which will have information about the person like manager OR Normal user or Executive.

Then crete a Person type of field in Item where you want to restrict the status change.

Create a UI rule that will capture current logged in person.

Now craete a Ui rule
Before the item is saved:Person field->code is exactly=Normal user,Error msg"You are not allwed to chaged to this status."

Hope this will work.

Thanks,
Avinash Shrivastava