I am trying to use the confluence SOAP service to add users to groups, however when I try to use any method (eg. login method) via the WCF Test client that comes with Visual Studio I get the following errors:
{noformat}
The communication object, System.ServiceModel.ChannelFactory`1[ConfluenceSoapService], cannot be used for communication because it is in the Faulted state.
{noformat}
Confluence Version : 6.1.2
I have the SOAP api enabled through the Confluence configuration.
Hello Avinash,
You can enable the SOAP API within Confluence, but you should be aware that the SOAP has has been deprecated since Confluence 5.5. It is suggested to switch to the REST API which is readily available. This may be the result of the errors you are having. Here is a disclaimer from the SOAP API;
The XML-RPC and SOAP APIs are deprecated since Confluence 5.5, and may not work as expected.
Confluence has a new REST API that is progressively replacing our existing APIs. We recommend plugin developers use the new REST APIs where possible.
Note that for Confluence Cloud, API tokens do not support the XML-RPC and SOAP APIs.
Source document: Confluence XML-RPC and SOAP APIs
You can find more about the REST API at Confluence 6.1.2 REST API. Confluence 6.1 is coming up to end of life support in a few months (as of the date of this post), we would suggest planning an upgrade to a newer version. You can find more about the Atlassian End Of Life policy to see which versions are supported when support ends for those versions.
I hope this helps clarify which API to use with Confluence 6.1.
Regards,
Stephen Sifers
Thanks Stephen, we will plan an upgrade before the EOL support.
I did take a look at the rest API previously, however the functionality supported is very limited at this point.
I am trying to add users to groups, which doesnt seem to be supported yet.
Regards,
Avinash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Again Avinash,
You are correct, the API within Confluence does not support user group management. However, the Crowd API does support user management. Crowd is an additional product but would offer user management across the Atlassian tools. I will provide a few links for you to review;
Integrating Crowd with Atlassian Confluence
Your best option would be to use Crowd to manage your users as you would be able to control all user accounts from a central tool along with supported API calls to manage users. Another option would be to review the marketplace for add-on which allow for user management via an API or CLI. These marketplace add-ons may be more costly than Crowd and will only offer support within the product you purchase them for (in this case just Confluence). You can find more within the Atlassian Marketplace.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Stephen.
We have integrated our Atlassian applications such as Jira and Confluence with Okta. This uses Okta's SAML authentication.
On the Jira/Confluence side we still use user directories coming from Active Directory and Jira/Confluence internal directories. The Okta provisioning capabilities and limited at this point, so we are unable to use it yet.
Would you still recommend looking into Crowd ?
Regards,
Avinash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Avinash,
Okta will be your SAML provider and is compatible with Crowd Datacenter, but not server. In order to get Okta to work with Crowd Server you will require an add-on. You can use SAML Single Sign On for Crowd, which will allow Okta to authenticate through to Crowd and then Jira and Confluence. Ensure you test this integration and API calls within your staging instance and not your production instance.
If your end goal is to use an API to edit/change/add users, then moving to Crowd would be the best supported option moving forward.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Avinash,
you could also consider looking at our SAML Plugins for the Atlassian Applications. We natively support the OKTA API so that you can proactively synchronize Users and Groups from OKTA in a similar Way that the LDAP synchronization works.
Authentication is then being done via SAML. We also support multiple identity providers at the same time.
https://marketplace.atlassian.com/vendors/1210947/resolution-reichert-network-solutions-gmbh
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.