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 ...multi portal sharing usersmulti portal sharing users
Previous
 
Next
New Post
6/12/2007 4:03 PM
 

Very impressive! You saved me $149 dollars for having to buy a module!

thank you!

 
New Post
6/12/2007 4:27 PM
 

penra wrote

So the only way to share users across portals is to buy a third party module? Else a user has to have a unique name for each portal? Has this been put on the list to get fixed? It would seem important that you can share users across portals, especially considering you are using the same database.

please add your requirements to our roadmap survey at http://www.dotnetnuke.com/tabid/616/Default.aspx


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/13/2007 12:15 AM
 

For those who want to automatically share users between portals without using the GUI, check out the trigger below. 

How does it work?  When a user is inserted or updated, the trigger will add (userid, portalid) to table UserPortals for all portals.

To apply the tigger, log in as Host and go to Host -> SQL.  Paste the code, check Run as Script, and then click on Execute. 

 

-- =============================================
-- Author:  Fuji Nguyen
-- Create date: 6/12/07
-- Description: Trigger to add userid, portalid to UserPortals table to enable single account to access all parent/child portals
-- =============================================
CREATE TRIGGER trig_User_Multiportal
   ON  dbo.Users
   AFTER INSERT, UPDATE
AS
BEGIN
 -- SET NOCOUNT ON added to prevent extra result sets from
 -- interfering with SELECT statements.
 SET NOCOUNT ON;
DECLARE @UserID int
    -- Insert statements for trigger here
SELECT @UserID = UserID FROM INSERTED

INSERT INTO UserPortals
(
 UserId,
 PortalId
)
SELECT
 @UserId AS UserID,
 PortalId
FROM Portals
WHERE PortalID NOT IN (SELECT PortalID FROM UserPortals WHERE UserID = @UserID)

END
GO

 


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
New Post
6/13/2007 9:24 AM
 

What syntax would you use? Can you show a specific example of adding a user (can you add groups?) to another portal?

thank you mcsenow!

 
New Post
6/13/2007 9:25 AM
 

Thank you Leupold I will do!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...multi portal sharing usersmulti portal sharing users


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