Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Returns information about people.  User must have VIEW access on ???the user attributes.

The API has a list of search terms and search values. These are what's called the 'seed' (horrible term) that's passed into classes defined in personDirectoryContext.xml for searching. Typically the search terms are passed along to an LDAP search with an OR configuration (which is how personDirectoryContext.xml is normally configured, see https://wiki.jasig.org/display/UPM43/LDAP+User+Attribute+Sources). You can also review https://wiki.jasig.org/display/UPM43/Configuring+Search but it is more for the portal's Search not specifically for a person search. So a search of

/uPortal/api/people.json?searchTerms%5B%5D=givenName&searchTerms%5B%5D=sn&searchTerms%5B%5D=username&givenName=student&sn=student&username=student

this is saying search terms are givenName and username, and the values of both are student (and typically you have your LDAP search configured for OR comparisons; e.g. givenName=student OR username=student).

Permissions drive what attributes are allowed to be released to what type of user, and which users can be included in search results.  For example in the 'default' uPortal 4.3.0 configuration:

[GET] /uPortal/api/people/{username}.json

Returns information about people.  User must have VIEW access on ???to the user and to specified user attributes.  See additional information above.

[GET] /uPortal/layout.json (also at uPortal/api/v1/dlm/layout.json)

...