...
Info |
---|
Good news for all developers: Starting with release 1.8, there is a /wiki/spaces/upp/pages/9414237 REST API, which will provide access to the data of the User Profile Plugin. |
...
Warning |
---|
This information is intended for developers and should help to access the data stored by the User Profile Plugin (UPP) as long as there is no public API. The information and procedures describes here are not supported, especially if you plan to manipulate the data stored by the UPP. You have been warned . |
...
Standard Profile Elements
...
Info | ||
---|---|---|
| ||
Starting with User Profile Plugin 1.9 and Confluence 5.3 the data is stored using the user key for the <username> placeholder. |
Example
You have a custom field, say "Favorite Color" with the key "12345". To get the favorite color of the with the login "twi" you would have to make the following call:
Code Block | ||
---|---|---|
| ||
... public Object getFavColorForTwi(){ ConfluenceBandanaContext ctx = new ConfluenceBandanaContext(null); // GLOBAL context String bandanaKey = "de.communardo.userprofile.element.data.12345.twi"; return this.bandanaManager.getValue(ctx, bandanaKey); } ... |
...
Info |
---|
The Bandana Editor Plugin from Atlassian Labs might be helpful in exploring the Bandana data structures. |
...