2
1
0

Confluence利用ユーザが退職し、後任の人が就任した際などに「前任者と同じ権限で」と言われることがあります。

グループは同じに設定しますが、スペース/ページの閲覧権限等を個人につけられている場合等、要望通りにいきません。


Confluenceのスペース/ページに特定個人が権限設定されていることをリスト化などできないでしょうか。

    Commentコメントを追加...

    1 回答

    1.  
      3
      2
      1

      ユーザーマクロ等から取得できたりもするかもしれませんが、
      データベースから取得してみました。

      select um.user_key, um.lower_username, c.contentid, c.title, s.spacename, s.spacekey, cps.cont_perm_type
      from content_perm as cp
      inner join content_perm_set as cps on cp.cps_id = cps.id
      inner join content as c on cps.content_id = c.contentid
      inner join spaces as s on c.spaceid = s.spaceid
      inner join user_mapping as um on cp.username = um.user_key
      where um.lower_username = '<lower_username>';

      <lower_username> の部分は対象のユーザ名に置き換えてください。

      view と edit をまとめたりもっときれいに出せればいいのですが、
      とりあえずこのような形式にとどまります...

      すみません...

      1. Shuzaburo Doba

        こんな感じですかね...

        PostgreSQL
        select um.user_key, um.lower_username, c.contentid, c.title, s.spacename, s.spacekey, string_agg(cps.cont_perm_type, ', ' order by cps.cont_perm_type)
        from content_perm as cp
        inner join content_perm_set as cps on cp.cps_id = cps.id
        inner join content as c on cps.content_id = c.contentid
        inner join spaces as s on c.spaceid = s.spaceid
        inner join user_mapping as um on cp.username = um.user_key
        where um.lower_username = '<lower_username>'
        group by um.user_key, um.lower_username, c.contentid, c.title, s.spacename, s.spacekey;

      2. RYOITO

        ありがとうございます。

      Commentコメントを追加...