Making AD user belong to CommunityMember


I've successfully set up a Relate+ site and am using the Medstore template and even managed to hook up the AD with users and groups.

Now, how do I add users or groups under CommunityMember group so the users can use the system at its fullest?
It doesn't seem like adding a AD group to CommunityMember group is working out.

Sep 11, 2012 11:15

My site uses custom role- and mambership providers, and i solved this by modifying the GetRolesForUser method. You could do this in a number of ways. I wanted to check if the user is a member of a specific AD-group, like this:

public override string[] GetRolesForUser(string username)
            DirectoryData userResult = GetUser(username);

            if(userResult == null)
                return new string[0];
                //throw new ProviderException(String.Format("The user {0} does not exist.", username));

            List<string> roleList = GetRolesForUserRecursive(userResult);

            List<string> appendGroups = new List<string>();
            foreach (string thisRole in roleList)
            return roleList.ToArray();

Sep 11, 2012 14:45

Thanks, but that did not quite cut it.

This thread suggests adding a key in EPiserverFramework.config. 
<add name="cmsAdmins" roles="Administrators, WebAdmins, YourAdGroupName"/>

Could I do this for making an AD group a part of CommunityMembers?


It's CMS 6 R1, not 2 btw

I tried, but nothing happend

Edited, Sep 13, 2012 14:00

It seemed like a missmatch in EPi-users vs AD-users.

I removed the EPi-user and started over and it helped when adding a certain AD group to the CMS tree.  

Sep 21, 2012 9:34
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.