You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.
To implement the enhancement in #38 you have made changes to sprLib.user(options).profile(). Now it seems we cannot provide any Properties from Person Properties like 'DirectReports', 'DisplayName' etc
sprLib.user(options).profile('DirectReports') -->this is not working, error: DirectReports"DirectReports property does not exist in SP.UserProfiles.PeopleManager.UserProfileProperties"
sprLib.user(options).profile('Department')-->this is working fine, 'Department' is part of the UserProfileProperties
The text was updated successfully, but these errors were encountered:
Therefore when using another top-level property name (ex: 'DirectReports') zero returns are returned - as it doesn't exist.
So the fix for your issue would be that the code would have to be aware of which ProfileProperties are "genuine" values so we could query all UserProfileProperty values and filter the one being searched for, which is an ugly solution.
Long story short, I'd prefer users to pull all profiles, then select the [key] they want if it's not a real UserProfileProperty... e.g.: everything not highlighted:
To implement the enhancement in #38 you have made changes to sprLib.user(options).profile(). Now it seems we cannot provide any Properties from Person Properties like 'DirectReports', 'DisplayName' etc
sprLib.user(options).profile('DirectReports') -->this is not working, error: DirectReports"
DirectReports
property does not exist in SP.UserProfiles.PeopleManager.UserProfileProperties"sprLib.user(options).profile('Department')-->this is working fine, 'Department' is part of the UserProfileProperties
The text was updated successfully, but these errors were encountered: