.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Custom Managing Memberships, Users, UsersInRoles And Profiles

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :ASP.Net

Hello forum,

I've been using the CreateUserWizard to create my users as well as to assign them roles/permissions.  My problem is that, once created, I have no idea how to edit or delete their details without using  the Asp.net Website Administration Tool.  Where can I get some extensive but easy to understand literature on the subject?

Thank you

View Complete Post

More Related Resource Links

Unable to search Custom User Property Created in User Profiles in SharePoint 2010


Hi ,

I have created a custom user property,and created metadata property and added mapping to it, still i m not able to Search in People,Please advise

Managing Custom Configuration Options for a SharePoint Application

Learn how to store configuration data in various ways, including inside the web.config file on front-end Web servers, by using the property bag on various Windows SharePoint Services objects, storing configuration data within SharePoint lists, and by using the hierarchical object storage.

Custom Role Provider Not Authenticating Users

I have created a custom role provider that is hard coded to say everyone is in a certain group (code below).  I have edited the webconfig of Central Admin, my Web Front End, and the Claims Service.  I can sucessuflly log in using the asp.net membership provider and configured access to the site by adding the "custom" role to the Owner Group.  With all of the above items setup I can launch visual studio and attach the to IIS process and verify that my custom role provider is being called.  Even with all this setup I cannot get another forms based user to be able to access the site.  The other user is getting a sharepoint access denied issues. Any Ideas?   public class IdBasedRoleProvider : RoleProvider { public const string AllAuthenticatedUsersRoleName = "custom"; public override string ApplicationName { get; set; } public override string[] GetRolesForUser(string username) { return new[] { AllAuthenticatedUsersRoleName }; } public override bool RoleExists(string roleName) { if (roleName == AllAuthenticatedUsersRoleName) return true; else return false; } #region Methods Not Implemented public override string[] GetAllRoles() { throw new NotImplementedException(); } public override bool IsUserInRole(string username, string roleName) { throw new NotImplementedException(); } public override void Ad

"no memberships" problem for ~70% of users

I am stumped!  I've read all the posts and blogs I can find on this stupid thing.  We have not done a deleteoldsites 0 yet )or any stsadm commands really) Profile Properties show that the syncs are working, there's nothing in the sync logs stating they are not working, just a few warnings for accounts we've deleted.  Both Incremental and Full Imports are working, the last full was this morning at 4am. stsadm -o sync -listoldsites 0 gives 1 single result, which was dated about 6 hours before I ran the command, so its not real old. Also I have one user who has the same username, but a new SID for his account... he doesn't have a My Site, and gets an error when he tries to auto-create one.   Accounts that have been deleted from AD are also not having their names removed from "All People". Then there's the handfull of accounts that look fine - thought I can't say for sure if changes are being propagated.  I just made a new Universal Distro List in AD and added myself to it.  I'll see if it shows up.  Sadly I don't have access to the SSP Admin pages, I have access to about 90% of the administration in Sharepoint, just not the SSP pages for whatever reason.

Custom Contact List: has to be auto-populated with users and manually insert others contact

Hi All, is it possible to create a custom contact list that automatically insert user as contact? I have to use it to send auto-email to the people in the contact list... (ant they can be user or not) Thanks All Vit

Issue using Managed Metadata with custom fields in the User Profiles application


Hi there,

I've created several custom properties in my User Profile Application.

I've also created several Term Sets in the Managed Metadata service application Term Store for use with these custom properties. Some of the Term Sets contain terms and have a closed submission policy whilst others have an open submission policy.

If the user hasn't already populated any of these custom fields in their profile, when they click on the Edit My Profile link from their My Site Profile page everything seems okay (for the first time).

The user is then able to successfully select values for these custom fields - the metadata is available. They can click on the "tag" icon to select values, or start typing and the suggestions appear. They are also able to enter new values into custom property fields where the term set is open to submission.

If they then Save and Close then go back into Edit My Profile, often not all of the existing data is populated in the metadata custom fields. On different occasions different fields may be blank. Sometimes this is accompanied by the error "Message from webpage / The server method 'ValidateTerms' failed", but not always.

Has anyone else tried this or have any suggestions are to what the issue might be?

Thanks in advance.

create users with different Profiles data


hi dears 

i working on event managment registration and i need to make a roll for visitors and roll for exhibitors 

visitor most enter data to visitor profile with data like

first name,last name , DOB, Mobile Number, tel , fax 

and exhibitor most enter data to exhibitors profile data with different data .

it's easy to make it for visitor or exhibitors with one profile 

how to make it with different data profiles what the logic to make that 

thanks a lot ......

Gridview display users and personal profiles



I am trying to populate a gridview control to display the current registered users on the site.

I query various tables from the ASPDOTNET.mdb database in order have a list comprising of UserNames, Email address, LastLoggedOn, etc. This bit is fine and it displays all the details.

The part I'm having a problem with, is I would like to add the FirstName and LastName to each row also. But I'm not sure how to get at the record. In the profile table I have a column with this detail within plus other personal details but I only need to retrieve the names and display that in the gridview.

Cheers Rob.


ASP.Net version 3.5

Access Database provider ASPDOTNET.MDB

(setup exactly the same way as the sql express table structure.)



Custom Form Field in Collect Data Action doesnot capture multiple users.


I have a situation where the department head dynamically assigns the reviewers depending on the document that is uploaded. To capture the reviewers I added a Collect Data Action and a "Reviewers" form field, with type "Person/Group" and checked the following properties

1. Allow selection od People and Groups, 2. Choose from all users and more importantly 3. Allow multiple users

Although I am able to enter multiple users in the form, I am able to retrieve only the first user I entered and the rest just.. disappear!

Generate profiles for all ad-users



How can i automaticly create sharepoint-profiles for all ad-users automaticly? So the users don't have to log-on to create the profile! 

create a custom login WebPart for FBA users



I've configured FBA in my SharePoint 2010 site.And i've added the users in my database.Now i want to create a custom login WebPart.How do i check the user credentials.Please help me.

Error 5566 using UserGroup.asmx to return current users SharePoint group memberships?


Hi all,

I am trying to return the groups that the current user is a member of using the Getgroupcollectionfromuser operator in data connection with InfoPath 2010. So I can use that data to determine who is able to see specific fields on the form, which will be a browser form.

I tried this way as a similar question was raised here.

When adding the data connection I use the method stated here, but select the Getgroupcollectionfromuser operator instead. But when I enter the a value in "Set sample value" and not in "Set value" I get the error below when I open a new item. I am also using a data connection to another list, that just has one field and one item, which will be used to set the conditions on the fields to hide them.

An error occurred while trying to connect to a Web service.

An entry has been added to the Windows event log of the server.

Log ID:5566

I have been looking around the web for a clue as to what I am not doing right, but have

Custom Controls in C# .NET

Embedding user controls in a Windows form is just like adding a simple button or text box that are already provided with .NET. These basic controls were written essentially like you code your own controls. Typically the controls you design are to be used in multiple forms or to modularize your code. These reasons help reduce the amount of code you have to type as well as make it easier for you to change your implementation. There should almost never be any reason to duplicate code because it leaves a lot of room for bugs. So, implementing functionality specific to your control in the control's source code is a good idea. This reduces code duplication as well as modularize your code, which is a good programming guideline.

MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

Enabling Users to Maintain SharePoint Content

When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

Some areas of the site usually contain less-dynamic information. Internal memos and corporate policies are common examples of this information. One option for this information is to post these documents in a document library. Documents in a library are often stored in a few different formats: Word, Acrobat (PDF), or HTML. Each of these formats has its drawbacks.

Writing custom MembershipProvider

ASP.NET Membership mechanism allows to use the build-in server tables to store and retrieve user data. By default, this mechanism can only be used with SQL Server database to which Microsoft provides suitable MembershipProvider class.
Inheriting from this abstract class, developer can use his own table(-es) from any database and use any database engine other than SQL Server, like Oracle, DB2 etc.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend