Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-37100

REST API to retrieve users counting towards Confluence license

    • 7
    • 6
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      It would be great if there is an REST API that could return

      • the number of users counting towards Confluence license
      • the usernames of those being counted towards Confluence license (workaround: use debug logging as per CONFSERVER-58875)

      This will allow administrators to easily keep track of the users that is counting towards the license and also to allow for easy monitoring of Confluence server user counts.

      As noted in the comments below, a REST API is available to query this information:

      /rest/license/1.0/license/userCount 
      /rest/license/1.0/license/remainingSeats 
      /rest/license/1.0/license/maxUsers
      

      A new REST API has been in added in Confluence 7.1 that allows for the querying of even more details (license expiry date, subscription details etc):

      /rest/license/1.0/license/details

      A REST endpoint has been added to Confluence 9.3 which returns active users sorted on last login time (ascending):

      /rest/api/user/list/active
      

       

            [CONFSERVER-37100] REST API to retrieve users counting towards Confluence license

            Is there any open request for the missing informations (compared to component license details) or jira license?
            Aktually I am struggeling about the missing SEN as this is the unique identifier for an license, I have no clue why that is not included...

            Christian Solle added a comment - Is there any open request for the missing informations (compared to component license details) or jira license? Aktually I am struggeling about the missing SEN as this is the unique identifier for an license, I have no clue why that is not included...
            agawron made changes -
            Description Original: {panel:bgColor=#e7f4fa}
            *NOTE:* This suggestion is for {*}Confluence Server{*}. Using {*}Confluence Cloud{*}? [See the corresponding suggestion|http://jira.atlassian.com/browse/CONFCLOUD-37100].
            {panel}
            It would be great if there is an REST API that could return
             * the number of users counting towards Confluence license
             * the usernames of those being counted towards Confluence license (workaround: use debug logging as per CONFSERVER-58875)

            This will allow administrators to easily keep track of the users that is counting towards the license and also to allow for easy monitoring of Confluence server user counts.

            ---

            As noted in the comments below, a REST API is available to query this information:
            {code:java}
            /rest/license/1.0/license/userCount
            /rest/license/1.0/license/remainingSeats
            /rest/license/1.0/license/maxUsers
            {code}
            A new REST API has been in added in *Confluence 7.1* that allows for the querying of even more details (license expiry date, subscription details etc):
            {code:java}
            /rest/license/1.0/license/details{code}
            New: {panel:bgColor=#e7f4fa}
            *NOTE:* This suggestion is for {*}Confluence Server{*}. Using {*}Confluence Cloud{*}? [See the corresponding suggestion|http://jira.atlassian.com/browse/CONFCLOUD-37100].
            {panel}
            It would be great if there is an REST API that could return
             * the number of users counting towards Confluence license
             * the usernames of those being counted towards Confluence license (workaround: use debug logging as per CONFSERVER-58875)

            This will allow administrators to easily keep track of the users that is counting towards the license and also to allow for easy monitoring of Confluence server user counts.



            As noted in the comments below, a REST API is available to query this information:
            {code:java}
            /rest/license/1.0/license/userCount
            /rest/license/1.0/license/remainingSeats
            /rest/license/1.0/license/maxUsers
            {code}
            A new REST API has been in added in *Confluence 7.1* that allows for the querying of even more details (license expiry date, subscription details etc):
            {code:java}
            /rest/license/1.0/license/details{code}
            A REST endpoint has been added to Confluence 9.3 which returns active users sorted on last login time (ascending):
            {code:java}
            /rest/api/user/list/active
            {code}
             
            Alex Gallien made changes -
            Description Original: {panel:bgColor=#e7f4fa}
              *NOTE:* This suggestion is for *Confluence Server*. Using *Confluence Cloud*? [See the corresponding suggestion|http://jira.atlassian.com/browse/CONFCLOUD-37100].
              {panel}

            It would be great if there is an REST API that could return
            * the number of users counting towards Confluence license
            * the usernames of those being counted towards Confluence license (workaround: use debug logging as per CONFSERVER-58875)

            This will allow administrators to easily keep track of the users that is counting towards the license and also to allow for easy monitoring of Confluence server user counts.
            New: {panel:bgColor=#e7f4fa}
            *NOTE:* This suggestion is for {*}Confluence Server{*}. Using {*}Confluence Cloud{*}? [See the corresponding suggestion|http://jira.atlassian.com/browse/CONFCLOUD-37100].
            {panel}
            It would be great if there is an REST API that could return
             * the number of users counting towards Confluence license
             * the usernames of those being counted towards Confluence license (workaround: use debug logging as per CONFSERVER-58875)

            This will allow administrators to easily keep track of the users that is counting towards the license and also to allow for easy monitoring of Confluence server user counts.

            ---

            As noted in the comments below, a REST API is available to query this information:
            {code:java}
            /rest/license/1.0/license/userCount
            /rest/license/1.0/license/remainingSeats
            /rest/license/1.0/license/maxUsers
            {code}
            A new REST API has been in added in *Confluence 7.1* that allows for the querying of even more details (license expiry date, subscription details etc):
            {code:java}
            /rest/license/1.0/license/details{code}
            Jacqueline Bietz made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 775073 ]
            Jacqueline Bietz made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 775073 ]
            Sen Geronimo made changes -
            Workflow Original: JAC Suggestion Workflow 4 [ 3580745 ] New: JAC Suggestion Workflow 3 [ 4338561 ]
            Diclehan Erdal made changes -
            Link New: This issue has a derivative of CONFSERVER-81153 [ CONFSERVER-81153 ]
            Rob made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 684260 ]
            Rob made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 684147 ]

            The user count should be in the API call results, having to do debug logging stuff is ridiculouis.

            Jason D Smith added a comment - The user count should be in the API call results, having to do debug logging stuff is ridiculouis.

              mbereznitsky Mark Bereznitsky
              dooi Der Lun
              Votes:
              38 Vote for this issue
              Watchers:
              35 Start watching this issue

                Created:
                Updated:
                Resolved: