Author |
Message
|
ALococo |
Posted: Fri Oct 15, 2004 6:36 am Post subject: Creating a list of authorized users for transferring |
|
|
 Newbie
Joined: 08 Sep 2003 Posts: 6
|
When transferring a workitem(s) to a user, I would like to populate a dropdown list of users. This list of users should only be filled with users that are allowed to work this particular workitem.
So what I am thinking is that I can get a list of users that this person is "authorized for". From this list, I would like to try and get authorization information for each user that will help me determine if they are allowed to work this workitem or not.
Is this possible given the limited person api? If not, are there other techniques used to accomplish this? Is there a better or easier way to accomplish this? |
|
Back to top |
|
 |
jmac |
Posted: Fri Oct 15, 2004 8:02 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Not sure I understand the question.... If they are in the persons authorized for, then as far as MQWF is concerned they are allowed to work the item.
Maybe I am misunderstanding the question _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
ALococo |
Posted: Fri Oct 15, 2004 10:52 am Post subject: |
|
|
 Newbie
Joined: 08 Sep 2003 Posts: 6
|
The "personAuthorizedFor" method will return a list of users that the person doing the transfer is allowed to transfer to. But, the workitem I want to transfer to them, isn't a workitem they are allowed to work.
Let me give an example. I have 2 activities setup to assign any workitems in the activity to a virtual user. Activity 1 is setup to assign workitems to "virtual user 1" and activity 2 is setup to assign workitems to "virtual user 2".
I have a user that can see the worklists of "virtual user 1", but not "virtual user 2". I do not allow them to see "virtual user 2" work because this user does not know how to work the workitems that are in this activity.
WF will allow me to transfer a workitem, that is assigned to "virtual user 2", to the user even though they are not authorized to view this virtual user's worklist.
I need to construct a way to remove this user from the list of valid users based on where a workitem is, in the flow, and the authorizations of the user I am transferring to. |
|
Back to top |
|
 |
jmac |
Posted: Fri Oct 15, 2004 11:40 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
ALococo wrote: |
WF will allow me to transfer a workitem, that is assigned to "virtual user 2", to the user even though they are not authorized to view this virtual user's worklist. |
Are you saying that U1 is authorized to only VU1 and U2 is Authorized to only VU2 and MQWF is allowing you to transfer to/from U1 and VU2?
Again, unless I am misunderstanding something, what you are saying should not be possible. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
ALococo |
Posted: Fri Oct 15, 2004 11:50 am Post subject: |
|
|
 Newbie
Joined: 08 Sep 2003 Posts: 6
|
Yes.....that's exactly what I'm saying. So I need to be able to filter the list of users based on their authorizations and where the current workitem resides in the flow.
I don't want the user to show up in a drop down list as available users if the workitem I want to transfer to them is assigned to a virtual user that this user is not authorized for. |
|
Back to top |
|
 |
jmac |
Posted: Fri Oct 15, 2004 12:14 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
ALococo wrote: |
Yes.....that's exactly what I'm saying. |
I think you need to investigate why that is possible. If you truly have U1 authorized to only VU1 and U2 authorized to only VU2 and you can do transfers to/from VU2 and U1 and VU1 and U2, then there is a bug. Is it possible that your authorizations is not what you think? Can you post your Person fdl?
Or then again, maybe I am still confused. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|