I am trying to get some information pre populate in the new form for which I need to have current user and their Manager information. I am not using the OOTB functions as they will not give me the manager' s info.
Any idea how can I get Current User's and their Manager's using REST service or any method for nintex forms.
Solved! Go to Solution.
where do you want to get the info from? from sharepoint? or AD?
if OOTB functions do not provide needed details it looks like you do not have populated them in AD and so neither SP can get them. in that case REST call will not help you either.
anyway, SP's REST endpoints looks like
These calls give us the current user info and doesn't contain any info about their managers,phone no etc which is present in the AD.
Solved it after putting some hours and its like
"/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(@v)?@v='" + encodeURIComponent(LoginName)"
will give us the whole info. and the problem was Nintex having the permission at the site level but not the tenant level and was throwing 403 error everytime I was running the above command.