Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Application permission denied when trying to create Confluence user with XML-RPC

Anders Nordbø
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2012

I'm trying to create Confluence users for my OnDemand Confluence using XML-RPC and java. I'm able to login and to retrieve information about users, spaces and projects, but when trying to run the following code:

Map newUser = new HashMap();
            newUser.put("email", email);
            newUser.put("fullname", fullname);
            newUser.put("name", name);
            newUser.put("url", CONFLUENCE_URI + "/display/~" + name);
            
            client.execute("confluence2.addUser", new Object[]{token, newUser, password});

I get the following error: "Could not create new user 'testuser': com.atlassian.crowd.exception.ApplicationPermissionException:"

Is this not possible with Confluence OnDemand?

1 answer

1 accepted

0 votes
Answer accepted
LucasA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 17, 2013

Hi,

Please make sure that you have (the user that you are using on XML-RPC) the necessary permissions to create users on your instance. Note that the users permissions are the same for API requests and UI.

Cheers!

Stephen Landry
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 14, 2018

Hmmm

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events