New answers tagged

0

As the article you link to explains, SPSecurity.RunWithElevatedPrivileges is considered the best practice if your code is being executed within a SharePoint server-side context. Since it is part of SharePoint's server API, it can only function on a server within a SharePoint Farm. If your web application is running on IIS on a non-SharePoint environment, ...


0

I ended up contacting Microsoft and was able to get this resolved. We made a few changes so I'm not 100% sure which step fixed it but I have an idea. For starters, it's worth mentioning we used to run 2010 and we upgraded to 2013. This was the error in the event log (6801): "Exception while trying to migrate account 'CTO\JohnDoe' to 'CONTOSO\JohnDoe'. ---> ...


0

Have come across this in one environment. We tried to solve it with MS Support, but were not successful. The last thing MS said was that SharePoint was OK, it was just getting wrong token from the AD - so the error was outside SharePoint in our case. They did not provide us with root cause analysis anyway, so we still are facing this issue and using ...


0

Please check this: http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html I get the department with this script: <script type="text/javascript"> $(document).ready(function() { var loginName = ""; var userid = _spPageContextInfo.userId; function GetCurrentUser() { var requestUri = _spPageContextInfo.webAbsoluteUrl + ...



Top 50 recent answers are included