Retrieving the profile for a particular username?

J

Jéjé

Hi,

I want to access the profile of a particular user to apply / change some
parameters.
Like a list of authorized projects. (and other properties)

The administrator will go on a web page, select the user, change the list of
authorized projects, save it.

how to do this?

thanks.

Jerome.
 
B

Brock Allen

ProfileCommon otherProfile = Profile.GetProfile("SomeOtherUserName");
otherProfile.Data = newValue;
otherProfile.Save();
 
J

Jéjé

I've no GetProfile function under the Profile namespace.
I see a GetAllProfiles function but this function don't give me access to
the ProfileBase class. (or the profilecommon class)
 
J

Jéjé

oups... after some research I found it

I'm using a custom profile (inherited from profilebase) which don't give me
access to the profile.

but the solution appear to be simple:
I have to create a profile object with the username
Profile.Create(username)

which is the same code has the getprofile function automatically generated
in the profilecommon class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
Martindap

Latest Threads

Top