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

cwd_user_attribute missing data from Confluence database while using jira remote directory

    XMLWordPrintable

Details

    Description

      Summary

      • While using Confluence with Jira remote directory for user management, if I want to search for information regarding user usage, such as last login data, we cannot find because nothing is registered in the cwd_user_attribute for users coming from Jira remote directory. Data is saved normally in the cwd_user.

      Steps to reproduce

      Expected Results

      • Data is retrieved from the cwd_user and cwd_user_attribute.

      Actual Results

      • Nothing is retrieved from cwd_user_attribute about the Jira remote directory user.

      Investigation Done

      • cwd_user receives the data normally
      • when used with Jira, the cwd_user_attribute receives only data from the Confluence Internal Directory
      • both cwd_user and cwd_attribute receives data normally when used with just Confluence internal and when used with LDAP/AD. Can retrieve desired data with the above queries.

      Workaround

      • Can retrieve the desired data from the Jira database by adapting the queries. Jira uses cwd_user_attributes. Note the s.
      • Example:
        SELECT cwd_user.user_name, to_timestamp(CAST(cwd_user_attributes.attribute_value as double precision)/1000) AS LastLogin
        FROM cwd_user_attributes, cwd_user 
        WHERE cwd_user_attributes.user_id = cwd_user.id 
        AND cwd_user_attributes.attribute_name = 'lastAuthenticated' 
        AND cwd_user.active='1'
        ORDER BY LastLogin DESC;
        

      Attachments

        Activity

          People

            Unassigned Unassigned
            ajardim Artur J
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: