Roles API

Susanne Lefvert lefvert at mcs.anl.gov
Tue Aug 12 13:01:47 CDT 2003


Regarding subjects and users.  If a subject/user can be a group I think 
subject is a better name for it (when I think of a user I think of one 
single person). But as long as we are using the same name everywhere I 
am happy :).   

Susanne

On Tue, 12 Aug 2003, Eric Olson wrote:

> 
> Here is the current exposed Roles soap API for the Venue.
> They can easily be added, removed, or renamed at this time, so take a 
> quick look if you have a minute.  I beliebe you have to be an 
> Administrator to access all of them except the last one.
> 
> Venue.
>   AddSubjectToRole(subject, role_string)
>   RemoveSubjectFromRole(subject, role_string)
>   SetSubjectsInRole(subject_list, role_string):
>   AddRole(role_string)
>   GetUsersInRole(role_string)
>     (It seems both "Subject" and "User" are used, which is better?)
>   GetRoleNames()
>     returns list of strings
>   GetAvailableGroupRoles()
>     returns groups the venue knows about as list of strings.
>     examples include All Users or Server Administrators
> 
> 
> Users also probably would like to know which roles they are in.
>    -- specifically so the venueclient can know if the user is a venue 
> administrator and if so, provide a button to administrate the venue.
>    I'm proposing something like the following:
> 
>   DetermineRoles(subject="")
>     returns a list of role names that the user is in.
>     only authorized for this call if you are requesting your own roles or 
>     you are an administrator.
> 
> Comments requested,
> Eric
> 
> 




More information about the ag-dev mailing list