Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListFilter list on User Security RoleFilter list on User Security Role
Previous
 
Next
New Post
4/22/2009 2:54 PM
 

Dear Guru,

Is there any way to filter a list based on a user's security role memberships?  I don't see a token for Role.

Registered users are members of 1 or more security groups
The list has a text column that contains the security group name that it belongs to.
.I guess I'm attempting to use security roles to aproximate a 1-many relationship.

Thanks,

Mike

 
New Post
4/22/2009 3:59 PM
 

you can use [user:roles] token in form & List (DNN5), in UDT 3.5.1, you have to use custom XSL, there is an example in the users documentation.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/24/2009 3:59 PM
 

Sebastian,

I'm using DNN5.  I've attempted using [user:roles] in an expression and always get an invalid expression.  I looked at the 3.51 doc and it appears user:roles contains a pipe delimited list of roles like |Role1|Role2|Role3| ... My first column (Role) in my UDT contains a single Role name for each row of data.  I've reviewed the MS site on the expression syntax but there is no detail on some of the operators. Is there a charindex or patindex like operator?
Could someone make a suggestion of the form of the filter expression?

Thanks,
Mike

 
New Post
4/24/2009 4:33 PM
 

Try

',[User:Roles],' Like '*,admin,' shall return users, which are in Role Admin.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/24/2009 5:31 PM
 

Michael McDonald wrote

Sebastian,

I'm using DNN5.  I've attempted using [user:roles] in an expression and always get an invalid expression.  I looked at the 3.51 doc and it appears user:roles contains a pipe delimited list of roles like |Role1|Role2|Role3| ... My first column (Role) in my UDT contains a single Role name for each row of data.  I've reviewed the MS site on the expression syntax but there is no detail on some of the operators. Is there a charindex or patindex like operator?
Could someone make a suggestion of the form of the filter expression?

Thanks,
Mike

The pipelined list of roles still exist in form and List, though it had never been available through token replace. The token [user:roles] did not eixt in udt 3.51. You are reffering the /udt:Context/udt:UserRoles which is still there, but only accessible with XSLT , and not for a filter statement.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListFilter list on User Security RoleFilter list on User Security Role


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out