tag:blogger.com,1999:blog-4455058894110083658.post7625696333627332972..comments2024-02-26T22:59:25.161+00:00Comments on Vardhaman Deshpande: Set UserProfile Picture using Client APIs in SharePoint 2013Vardhaman Deshpandehttp://www.blogger.com/profile/17919845281919756108noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-4455058894110083658.post-8532900231242519782019-04-16T07:11:41.123+01:002019-04-16T07:11:41.123+01:00Hi Vardhaman ,
Is there any way for an User Profi...Hi Vardhaman ,<br /><br />Is there any way for an User Profile Admin in SP On-Prem Environment to update other users photos using client side code (SPServices/JSOM/CSOM)<br /><br />ThanksCHAHAT NAGPALhttps://www.blogger.com/profile/09907184356917033795noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-12223768274232762872018-07-06T12:08:25.122+01:002018-07-06T12:08:25.122+01:00Hi Vardhaman,
It is a great article. But i am won...Hi Vardhaman,<br /><br />It is a great article. But i am wonder if we can change profile picture for SharePoint online with this work around. Do you have any suggestion for to change profile picture of user in sharepoint online and it should reflect everywhere including Delve? client side suggestion will be great.<br /><br />Thanks<br />ManmayaManmaya Prasad Pandahttps://www.blogger.com/profile/15738667926828622626noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-58145542317756881432017-04-04T19:09:32.782+01:002017-04-04T19:09:32.782+01:00Hi Vardhaman,
I've tried the REST API code on ...Hi Vardhaman,<br />I've tried the REST API code on the site that I'm working. However, everytime runs it asks me for my user (AD) password and shows me up the following message "Connecting to sharepoint.mydomain.com" but the thing is that I'm not using a URL like that one, mine is like a URL to access a local resource on the network since is an intranet.<br /><br />My URL will be something like this: "https://sharepoint/sites/mysubsite"<br /><br />Can you help me on this, please?vLaDhttps://www.blogger.com/profile/05653460081130285539noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-90135753248311062582016-12-18T19:52:10.928+00:002016-12-18T19:52:10.928+00:00Hi Unknown,
Yes this is possible. Please see this...Hi Unknown,<br /><br />Yes this is possible. Please see this post: <a href="http://www.vrdmn.com/2014/11/set-another-users-profile-properties.html" rel="nofollow">http://www.vrdmn.com/2014/11/set-another-users-profile-properties.html</a>Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-65098911717302128272016-12-18T18:00:04.367+00:002016-12-18T18:00:04.367+00:00Hi Vardhaman,
Can office 365 admin set user profil...Hi Vardhaman,<br />Can office 365 admin set user profile property for other user using csom ? <br />Thank you Anonymoushttps://www.blogger.com/profile/15165216877776229213noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-25039237304694653032016-05-24T11:52:42.424+01:002016-05-24T11:52:42.424+01:00Hi Barnita,
Please see this post: Get UserProfile...Hi Barnita,<br /><br />Please see this post: <a href="http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html" rel="nofollow">Get UserProfile Properties with REST API</a>Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-39623598690851478932016-05-24T11:12:30.667+01:002016-05-24T11:12:30.667+01:00Hi Vardhaman,
Please help me with the following qu...Hi Vardhaman,<br />Please help me with the following question:<br />"How to get user profile property for profile pic using rest api?"<br />Thanks.BARNITAhttps://www.blogger.com/profile/08821436138868849223noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-60676785048716189622015-06-29T16:01:50.508+01:002015-06-29T16:01:50.508+01:00Hi John, thanks!
And you are right there doesn...Hi John, thanks!<br /><br />And you are right there doesn't seem to be a way to set another user's photo with JSOM.Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-12870820916722031192015-06-29T15:52:11.033+01:002015-06-29T15:52:11.033+01:00Thanks for your very good post. It sounds like it...Thanks for your very good post. It sounds like it may not be possible with JSOM to update another users profile picture (Office 365). Do you know if it can be done?<br />-JohnAnonymoushttps://www.blogger.com/profile/03056230279222113331noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-15169067664713670202015-03-31T19:43:17.886+01:002015-03-31T19:43:17.886+01:00@Marko Please see this post: http://www.vrdmn.com/...@Marko Please see this post: <a href="http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html" rel="nofollow">http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html</a><br /><br />@Suresh I don't think cross domain photo upload is supported yet in the API.Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-31283328738815462232015-03-31T18:14:57.665+01:002015-03-31T18:14:57.665+01:00Hi,
Vardhman what if I want to achieve same for cr...Hi,<br />Vardhman what if I want to achieve same for cross-domain?<br /><br />Thanks.Anonymoushttps://www.blogger.com/profile/03059232940560326942noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-89847388082258237542014-09-25T09:52:24.166+01:002014-09-25T09:52:24.166+01:00Hi Vardhaman
Thanx for a great blogg. How can I ge...Hi Vardhaman<br />Thanx for a great blogg. How can I get for example the Company-property for all users? I'm about to create a InfoPath form where you can pick the CompanyAnonymoushttps://www.blogger.com/profile/09317250505459100145noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-53157572198416683102014-06-30T13:50:16.146+01:002014-06-30T13:50:16.146+01:00Yes. You can find the browser compatibility of Arr...Yes. You can find the browser compatibility of ArrayBuffer over here:<br /><a href="https://developer.mozilla.org/en-US/docs/Web/API/ArrayBuffer#Browser_compatibility" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/ArrayBuffer#Browser_compatibility</a> Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-37408550856622470182014-05-20T03:47:11.065+01:002014-05-20T03:47:11.065+01:00This doesn't work in IE9 as there is no arrayb...This doesn't work in IE9 as there is no arraybuffer support?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-65901287615520670082014-04-10T13:40:05.091+01:002014-04-10T13:40:05.091+01:00@Chaithra,
Yes you can do that as this is a Clien...@Chaithra,<br /><br />Yes you can do that as this is a Client Side API and does not require SharePoint server to be installed.Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-77568643552553132592014-04-09T12:07:31.838+01:002014-04-09T12:07:31.838+01:00Hi Vardhanman,
Thanks for the post. I have a query...Hi Vardhanman,<br />Thanks for the post. I have a query. I don't have sharepoint installed in my system. Inorder to use Microsoft.Sharepoint.Userprofiles ,can i download this dll and place it in a folder and reference this dll to visual studio. Will that work for me or installation of sharepoint is must. Please help Or Can i do any alternative? Anonymoushttps://www.blogger.com/profile/03295307220947138535noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-26484583243497709292014-02-25T08:24:28.658+00:002014-02-25T08:24:28.658+00:00Hi Vinod,
Are you on On-Premise SharePoint 2013 o...Hi Vinod,<br /><br />Are you on On-Premise SharePoint 2013 or Office 365?<br /><br />If you are On-Premise, you can use the following:<br /><br />clientContext.Credentials = CredentialCache.DefaultNetworkCredentials;Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-40884896171176007392014-02-25T07:17:00.345+00:002014-02-25T07:17:00.345+00:00Hi Vardhaman ,
Thanks for your post. But in my sce...Hi Vardhaman ,<br />Thanks for your post. But in my scenario I am interested to use the set current login credential , not hard code.<br />Is there any Idea to implement this functionality for current Login. Below is my used code<br /> ClientContext clientContext = new ClientContext("http://abcd:88/sites/my/");<br /> SecureString passWord = new SecureString();<br /> <br /> clientContext.Credentials = new NetworkCredential("Username", "Password", "Domain"); <br /> var peopleManager = new PeopleManager(clientContext);<br /><br /> Stream fs = FileUpload1.PostedFile.InputStream;<br /> peopleManager.SetMyProfilePicture(fs);<br /> clientContext.ExecuteQuery();<br /><br />Regards,<br /> vinod<br />Anonymousnoreply@blogger.com