[XQZone General] Security roles

Darin McBeath ddmcbeath at yahoo.com
Mon Aug 7 06:56:30 PDT 2006


Not sure what you are trying to do, but you could try
using  sec:user-get-roles($user as xs:string).  But,
keep in mind that this will not return inherited roles
for a user.  This function will return a list of role
names as a string (and not an unsigned long).

You could also probably use sec:get-role-names($role
as xs:unsignedLong) ... it will return an element of
type sec:role-name. 

Hope this helps.

Darin. 

--- Shannon Shiflett <sss4r at virginia.edu> wrote:

> Hi,
> 
> I'm writing application-level authentication and
> would like to  
> decline access to a user who doesn't have a specific
> role assigned,  
> but xdmp:user-roles() returns a role ID and am not
> sure how to  
> process that.  Could someone demystify this or point
> me in a helpful  
> direction?  Thanks,
> 
> Shannon
> _______________________________________________
> General mailing list
> General at xqzone.marklogic.com
> http://xqzone.com/mailman/listinfo/general
> 




More information about the General mailing list