Forums

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

Confluence 6: Deactivate a user from Java API

Miguel Ángel García Gómez
Contributor
July 8, 2020

I'm trying to use a method from the Java API to deactivate a user.

This is for two versions of Confluence: 6.6.0 and 6.15.10. According to the documentation for 6.6.0, deactivateUser method can be used. However, for 6.15.10 version it seems that this method is deprecated. But there is not an alternative method for this. SO I was wondering if this method can be used safely.

Thanks in advance!

Regards,

Miguel.

1 answer

0 votes
Andrew
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.
July 8, 2020

Hello @Miguel Ángel García Gómez ,

As I can see in doc 'since 6.10.0. Use com.atlassian.confluence.user.UserAccessor'

Could You please check this https://docs.atlassian.com/ConfluenceServer/javadoc/6.10.0/com/atlassian/confluence/user/UserAccessor.html

 

Best regards,

Andrey

Miguel Ángel García Gómez
Contributor
July 8, 2020

Hello @Andrew ,

Thank you very much for your response ;) I've checked the link yo provided but if you search for "deactivateUser" it says that is one of the methods inherited from interface "bucket.user.UserAccessor". And if you click on it, the documentation said that is deprecated, but no other alternative is mentioned. So it's confusing for me :/

Regards,

Miguel.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events