Userprofile info from SharePoint in eForms
Hi,
I am developing an eForm application to be associated with SharePoint online list and I have to fill some of fields(Costcenter, Department etc) from UserProfile of current user.
I have tried to use lookup with REST API but getting error 403, may be I don't have the permission.Please suggest best way to do that.
Thanks!
-
The 403 says that you don't have permission.
Do you have an account to the SP Site with full control? if so then use that account to do the SharePoint activity Get User Profile. I use my account in the User field to setup then change to the variable that will hold the user who's information I want.
There is a "gotcha". In SharePoint the user information list on a site collection is only populated if the user visits the site or is granted individual permissions. I believe the SP Activity Get User Profile is going against the UIL not UP.
If the information is stored in AD, then I would use the Active Directory activity Retrieve User instead. However you will need an account with the permissions to read AD. Talk to your security and infrastructure team (or whatever they are called for your organization).
Phread
-
Hi Phread,
Thanks for your response, I am working on an eForm where I have some of the fields which need to be auto-filled based upon user profile property. It's not a process so I am not sure if I can use any of the mentioned activities.
Please suggest something which can be used on form itself.
Thanks!
请先登录再写评论。
评论
2 条评论