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 ...Looking for the Administrator cell for sql script for reports moduleLooking for the Administrator cell for sql script for reports module
Previous
 
Next
New Post
2/18/2014 1:18 AM
 
Hi everybody, I am using dnn 7.00 and I need to write a select statment like the one below only showing info where the user is an administrator. Any help would be great!
Select Username as "User Name",
Firstname as "First Name",
Lastname as "Last Name",
email as "Email Address"
from users as u
Where (need to find administrator for this part) Isadministrator='true'
and u.userid<>13
 
New Post
2/18/2014 3:23 AM
Accepted Answer 
you need to retrieve admin role for the current website (portal), either from portals or via ui.
Select Username as "User Name",
Firstname as "First Name",
Lastname as "Last Name",
email as "Email Address"
from users as u
Where userid in (SELECT UserID from UserRoles WHERE RoleID = xx)
and u.userid<>13

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/18/2014 4:13 AM
 
Sebastian Leupold,

Thank you again for a fast and accurate answer! I appreciate all of the help I have received from you over the years! If you ever have any automobile problems, small engine problems, New Jersey USA law questions or anything related to guns please let me know as these are what I specialize in. I hope to repay you some day by answering some questions for you!!!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Looking for the Administrator cell for sql script for reports moduleLooking for the Administrator cell for sql script for reports module


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.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out