Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

SharePoint 2013 | Programmatic update to user profile property value does not happen when tried second time

$
0
0

Hi

I have written code to update "AccountName" to add domain profile property in UPA. we have used LDIF approach to populate the user profile in UPA due to which "domain" is missing in "AccountName".

We thought of adding "domain" in "AccountName" by updating UserProfile programmatically through C# code.

I am able to update the user profile with domain. I have also added rollback capability in the code i.e. remove domain from the account name in case something goes wrong.

I tested as follows,

1. Execute the code - add domain in the profile  - Result: domain is added in the profile successfully

2. Execute the code - remove domain in the profile (this was done to test rollback is working as expected)  - Result: domain is removed from the profile successfully

3. Executed the code - this was done to add the domain back in profile - Result: Domain is not added.

Third time the domain was not added successfully.

There is any time limit on updating user profile property value or upper cap on how many times we can update a profile property value?

Can some please help me with this?

Regards,

RK


Radhakrishna


Viewing all articles
Browse latest Browse all 25064

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>