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 ...How To Export User List - DNN 4.xHow To Export User List - DNN 4.x
Previous
 
Next
New Post
8/23/2010 12:53 PM
 
Brilliant topic, has resolved some migration issues for me, however I also need the password field. Anyone got any ideas? Thanks Glynn
 
New Post
8/23/2010 1:44 PM
 
http://www.dotnetnukeblog.de/DotNetNuke+Export+Users+With+Passwords.aspx (German only)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/23/2010 10:55 PM
 
me again! I know, I suck. Sorry. But, heres my issue. I'm running a report to find all users created on a certain date, and with security role 'Y'. However, the report keeps returning users who do not have that role, and when I run the report to show me users who don't have y, it shows me people who do have the role. In this case, I want to find people who are no t yet 'Opt In Network Members'. Of the people who joined in the date range given, the report shows people who DO have that role, when the query below asks to NOT have that role.

SELECT DISTINCT u.LastName [Last Name], u.FirstName [First], P1.State, P2.Region, P3.Telephone, P4.Cell, u.Email, up.createddate
FROM Users U
INNER JOIN UserPortals UP on U.UserId = up.UserId
LEFT JOIN  dbo.UserRoles AS ur ON u.UserID = ur.UserID
 LEFT JOIN Roles R on UR.Roleid = R.Roleid
 LEFT  JOIN (SELECT UserID, PropertyValue AS State FROM UserProfile WHERE PropertyDefinitionID = 56) P1
     ON U.UserID = P1.UserID
 LEFT  JOIN (SELECT UserID, PropertyValue AS Region     FROM UserProfile WHERE PropertyDefinitionID = 9) P2
     ON U.UserID = p2.USERID
 LEFT  JOIN (SELECT UserID, PropertyValue AS Telephone     FROM UserProfile WHERE PropertyDefinitionID = 31) P3
     ON U.UserID = p3.USERID
 LEFT  JOIN (SELECT UserID, PropertyValue AS Cell     FROM UserProfile WHERE PropertyDefinitionID = 32) P4
     ON U.UserID = p4.USERID
WHERE up.PortalID = 0 AND R.Rolename <> 'Opt In Network Members'
 
New Post
8/24/2010 4:44 AM
 
you need to use a subquery for membership in the specific role and use "WHERE u.UserID is NOT IN (SELECT UserID from UserRoles UR INNER JOIN Roles R on UR.Roleid = R.Roleid WHERE R.RoleName = 'Opt In Network Members')" In your statement, you looked for members of any role except Y

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/24/2010 10:11 PM
 
You are a champion. Thank you once again Seb, I owe you a beer!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How To Export User List - DNN 4.xHow To Export User List - DNN 4.x


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