Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting a List of changed User Profiles (from MySites) in MOSS

56 views
Skip to first unread message

Geordie

unread,
Jul 19, 2007, 6:08:02 PM7/19/07
to
Hi,

I have been asked to update a table with data that has been entered by uses
in thier MySites. I would like to use the ProfileManagers.GetChange method
to return the profiles that have recently been changed.

The get changes method always returns 1000 profiles. I have not found a way
to set a flag to identifiey processed profiles.

Another option appears to be to add a query to the GetChanges method.
Within the query there is the option of setting a ChangeTokenStart property
with a date. Setting this date does not appear to effect the results (I
still get 1000 profiles).

I have added the code below. If anyone has any ideas I would much
appreciate the help.

Thanks,

Geordie

SPSite site = new SPSite("http://XXXXsps:8082/");
ServerContext srvContext = ServerContext.GetContext(site);
UserProfileManager profileManager = new
UserProfileManager(srvContext);
UserProfileChangeQuery query = new UserProfileChangeQuery();
query.PersonalizationSite = true;
query.ChangeTokenStart = new UserProfileChangeToken(new
DateTime(2007, 7, 19, 1, 0, 0));
UserProfileChangeCollection col = profileManager.GetChanges(query);

pimverver

unread,
Dec 10, 2007, 1:38:49 AM12/10/07
to
Hi Georgie,

I'm struggling with the same question and wondering if you can solve the problem either by setting a startdate or bij geting the lastchangetoken. As you don't seem to have received any reactions, I was wondering if you found a solution?

Thanks in advance

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com

sdbhatt...@gmail.com

unread,
Aug 27, 2013, 6:07:47 AM8/27/13
to
On Friday, 20 July 2007 03:38:02 UTC+5:30, Geordie wrote:
> Hi,I have been asked to update a table with data that has been entered by uses in thier MySites. I would like to use the ProfileManagers.GetChange method to return the profiles that have recently been changed. The get changes method always returns 1000 profiles. I have not found a way to set a flag to identifiey processed profiles.Another option appears to be to add a query to the GetChanges method. Within the query there is the option of setting a ChangeTokenStart property with a date. Setting this date does not appear to effect the results (I still get 1000 profiles).I have added the code below. If anyone has any ideas I would much appreciate the help.Thanks,GeordieSPSite site = new SPSite("http://XXXXsps:8082/"); ServerContext srvContext = ServerContext.GetContext(site); UserProfileManager profileManager = new UserProfileManager(srvContext); UserProfileChangeQuery query = new UserProfileChangeQuery(); query.PersonalizationSite = true; query.ChangeTokenStart = new UserProfileChangeToken(new DateTime(2007, 7, 19, 1, 0, 0)); UserProfileChangeCollection col = profileManager.GetChanges(query);


I'm also seeing the same behaviour and have not been able to find an option to work around this. Any idea would help.
0 new messages