I need to get count of active licensed users.
I try to use: UserCountServiceImpl
import com.atlassian.confluence.license.rest.service.UserCountServiceImpl
Unable to resolve class.
I've workaround to get licensed user number:
def usedLicense =userAccessor.countLicenseConsumingUsers().toString().
@Rafał Żydek To fix your problem Rest API package, try/ replace it with the below line
import com.atlassian.confluence.license.rest.service.*
I was looking for the license rest plugin for Confluence 7.1.0 here, https://mvnrepository.com/artifact/com.atlassian.confluence.plugins/confluence-license-rest
I could not find, may be it has not been updated for the latest Conf version
the last version was Conf 5.9x. But i tried imported the package in Conf 7.1.0 and the error disappears.
Best regards,
MO
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.