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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Expiring Security Roles - What does it really do? HelpExpiring Security Roles - What does it really do? Help
Previous
 
Next
New Post
1/10/2008 9:08 AM
 

utilizing security roles to deliver content/function for a "membership" type delivery that has a fixed start and end date. originally hoping to use the start and expire dates within the security roles to manage a renewal option but it appears that while the expire date impacts the display of what was delivered through the role is doesn't actually remove the role from the user's role list and thus can't be used for this scenario. is there a way to have a true expire that would strip the role from the user entirely at expire or other suggestions on how to handle this?thx

 
New Post
1/10/2008 10:04 PM
 

Hi there,

It would probably be quite easy to write an automated sql script to remove any expired roles from the userroles table. You could just set it up using sql agent to run each night at midnight.

Here is the sql to select the users from a specific portal who have an expired role. You could easily modify this to delete the records.

select * from userroles ur inner join userportals up on ur.userid = up.userid
where ur.expirydate is not null and ur.expirydate > getDate()
and up.portalid = 0

 

 



Richard Edwards
www.dnnstuff.com
Quality DotNetNuke Modules, Unrivaled Support (since 2004)
All 6 modules for as low as $49
 
New Post
1/11/2008 8:26 AM
 

Thank you - seems to make sense - maybe too much to see right away :) I'll give it a try

 
New Post
12/2/2008 6:41 AM
 

I must admit I was a bit shocked when I saw this post.

So when a role expires, it doesn't actually remove that role from the user? yikes, that's going to cause me a huge mess :(

I tried to use the above SQL script, but just got an error.

Any help appreciated.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Expiring Security Roles - What does it really do? HelpExpiring Security Roles - What does it really do? Help


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