Greetings...With the API I can connect to the server, get the list of jobs and execute them. Nice!
If I don't have permission to execute a particular job and I attempt to execute that job, it does not run. Good.
Now, I would prefer to not even display a job in my web client if I don't have the permissions to execute it.
If I understand the security model correctly, if any of the groups of which I am a member has the Execute Jobs permission checked, I can execute any job except those jobs where all my groups are specifically denied.
Conversely, if all my groups Execute Jobs checkboxes are cleared, I can only execute jobs where one of my groups has been specifically granted the execute permission.
So, assuming I have that correct, I need to locate this information in the API.
When I examine the Server object, I see Server.Client.User.Groups which gives me a list of GUIDs corresponding to the groups of which I am a member. While that is a good starting point, I need to know if any of those groups grant me that global Execute Job permission.
When I examine the JobClass object, I see GroupOverride which will give me GroupID and OverrideSettings which is another piece of the puzzle. However, I can't seem to find all the pieces to get a complete permission picture.
I know the VC Client is written using the VC API and I do see all the information in the VC Client. I'm just not seeing it all when I use the API. The API documentation seems out of date as I'm not finding some of the objects I've just described therein.
So. Whew. How can I determine which jobs I (the logged in user) can execute?
Thanks,Bob
Edited by moderator
2013-05-23T08:40:17Z
|
Reason: Not specified