0 votes
574 views
in REST API by (120 points)

1 Answer

0 votes
by (30.6k points)

GET /rest/bpm/wle/v1/user/{name} returns the user attributes (id, full name, e-mail, memberships); preferences are a different data set and come back only when you ask for them:

GET /rest/bpm/wle/v1/user/{userName}?parts=all                 -> "userPreferences" object included
GET /rest/bpm/wle/v1/user/{userName}?parts=userPreferences,memberships
GET /rest/bpm/wle/v1/user/{userName}?includeInternalMemberships=true&refreshUser=true&parts=all   // refresh from the registry first

Typical answer (BPM 8.5.7 / BAW):

{ "status": "200", "data": { "userName": "jdoe", "fullName": "John Doe", "emailAddress": "jdoe@example.com",
   "userPreferences": { "Task Email Notification": "true", "Email Address": "jdoe@example.com", "Locale": "en_US", "Send Task Email Notifications": "false" }, ... } }

If the object is empty although parts=all is used: the user has never saved preferences (Process Portal > Preferences stores them on first change; the REST API does not synthesise defaults), or the call was made for a different user than the one logged in without administrator rights - preferences of other users need the tw_admins role. Set them with PUT /rest/bpm/wle/v1/user/{name}?action=setPreference&key=Email%20Address&value=....

References

Related questions

0 votes
1 answer 2.2k views
0 votes
1 answer 1.2k views
0 votes
1 answer 606 views
0 votes
1 answer 1.6k views
0 votes
1 answer 999 views
asked May 15, 2016 in REST API by anonymous
0 votes
1 answer 830 views
+1 vote
1 answer 1.2k views
0 votes
1 answer 2.5k views
0 votes
1 answer 766 views
+1 vote
1 answer 2.7k views

723 questions

807 answers

98 comments

4.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...