Plugin Developer Discussion

Discussion for FogBugz Plugin developers

API for Groups and permissions on them

I might be missing something obvious, but I haven't found it in the docs.

I'm trying to query which groups were assigned to a community user (those which can be set in the group administration page in the "Community Users" section).

Now I haven't found the entity object for groups, and also I haven't seen how I could query for group permissions on a CPerson.

So is there a way to do this without building my own query? With all the permission handling this feels "wrong" to me.
Arsène von Wyss Send private email
Monday, January 4, 2010
 
 
Hi Arsène-
You're right, this should be available, and I have added a case to get it into the entity classes. It looks like an oversight.
Thanks!
Brett
Brett Kiefer Send private email
Monday, January 4, 2010
 
 
Brett, thanks for the feedback. So for now I'll build my own query.

The group membership of community users is stored in the ACL table as entries with sSectionName='Group' and iPermission=1 or 2, is this correct?
Arsène von Wyss Send private email
Monday, January 4, 2010
 
 
Right. iPermission is the permissions level of the indicated user on the indicated group: 0=none, 1=read-only, 2=read/write, 3=admin.
Brett Kiefer Send private email
Tuesday, January 5, 2010
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz