SlideShare a Scribd company logo
階層型組織への
セキュリティ設定例
やりたいことのイメージ
□Aグループの見える範囲
□Bグループの見える範囲
□Cグループの見える範囲
(自分の所属する支社のみ)
□Dグループの見える範囲
(自分の所属する支店のみ)
A社
B支社
C支店
D支店
E支社
F支店
G支店
H社
I支社
J支店
K支店
L支社
M支店
N支店
2
やりたいことの定義
データの見える範囲の定義
• Aグループ
• 閲覧可能なすべての会社配下の支社・支店が見える
• Bグループ
• 所属する会社配下の支社・支店が見える
• Cグループ
• 所属する支社とその配下の支店が見える
• Dグループ
• 所属する支店が見える
レポートでのフィルターの定義
• Aグループのユーザーの場合
会社フィルター 閲覧可能な会社のリスト
支社フィルター 会社フィルターで選択した会社配下の支社のリスト
支店フィルター 支社フィルターで選択した支社配下の支店のリスト
• Bグループのユーザーの場合
会社フィルター 所属する会社(閲覧可能な会社)のリスト
支社フィルター 会社フィルターで選択した会社配下の支社のリスト
支店フィルター 支社フィルターで選択した支社配下の支店のリスト
• Cグループのユーザーの場合
会社フィルター 支社が属する会社のみ表示
支社フィルター 所属する支社(閲覧可能な支社)のリスト
支店フィルター 支社フィルターで選択した支社配下の支店のリスト
• Dグループのユーザーの場合
会社フィルター 支店が属する会社のみ表示
支社フィルター 支店が属する支社のみ表示
支店フィルター 所属する支店(閲覧可能な支店)のリスト
3
実現するために必要な設定
• アクセスフィルターワイルドカードの設定追加
• アクセスフィルターの登録
• キャッシュされた値(オンデマンド)の利用
4
アクセスフィルターワイルドカードの
設定追加
アクセスフィルターワイルドカードの設定
リポジトリデータベースに対して右記のSQLを実行して、
設定を追加します。
アクセスフィルターに登録されている値が%の場合、
アクセスフィルターを省略する。という設定です。
設定を追加する前には必ず、
• Yellowfinを停止
• 万が一の事態に備えてリポジトリのバックアップを取得
してから、作業をおこなってください。
insert into configuration (
iporg,
configtypecode,
configcode,
configdata)
values (
1,
'SYSTEM',
'SOURCEFILTERWILDCARD',
'%’
)
6
アクセスフィルターワイルドカードについて
通常の動作:
WHERE句にアクセスフィルターの条件が挿入されます。
ワイルドカードが登録されている場合:
WHERE句からアクセスフィルターの条件が省略されます。
7
フィルターの動作とアクセスフィルターの対象
フィルターの動作 アクセスフィルターが必要な箇所
ユーザー 会社 支社 支店
Aグループ所属のユーザー 選択 選択 選択
Bグループ所属のユーザー
所属
会社
会社
依存
会社
依存
Cグループ所属のユーザー
支社
依存
所属
支社
支社
依存
Dグループ所属のユーザー
支店
依存
支店
依存
所属
支店
Aグループ所属のユーザーについては、すべてリストから選択できるようにする必要があるので、
アクセスフィルターは省略したい。
B〜Dグループ所属のユーザーについては、それぞれ赤い文字の部分に依存するかたちでリストを表示できれば良いので、
それ以外はアクセスフィルターを省略したい。
ユーザー 会社 支社 支店
Aグループ所属のユーザー 省略 省略 省略
Bグループ所属のユーザー 必須 省略 省略
Cグループ所属のユーザー 省略 必須 省略
Dグループ所属のユーザー 省略 省略 必須
8
アクセスフィルターの登録
参照タイプの設定
データソースのアクセスフィルターの
設定で、「会社」「支社」「支店」の
参照タイプをそれぞれ作成します。
10
アクセスフィルターレコードの登録
8ページの表を参考にして、省略したい
条件に対して、ワイルドカードを登録
します。
11
キャッシュされた値(オンデマンド)の
利用
キャッシュされた値(オンデマンド)とは?
「キャッシュされた値」との違い
「キャッシュされた値」は、あらかじめ
リポジトリデータベースにキャッシュしておいた値を
フィルターのリストに表示するための機能です。
キャッシュを取り直す操作をしない限り、データソース
を検索することはありません。
「キャッシュされた値(オンデマンド)」は、レポート
を開くたびに、フィルターの値をキャッシュしてリスト
に表示するための機能です。
レポートを開くたびにデータソースを検索してリストを
表示するので、キャッシュを取り直す操作は必要ありま
せん。
なぜオンデマンドを使用するのか
キャッシュされた値(オンデマンド)は、
レポートのSQLをベースにフィルターの値を取得して、リ
ストに表示します。
ベースになるレポートのSQLには、アクセスフィルターの
条件が含まれています。
そのため、レポートを開くユーザーに適した値がリストに
表示されます。
例えば、Cグループに所属しているユーザーの
場合、「支社」のアクセスフィルターの条件がレポートの
SQLに含まれているので、支社が所属している「会社」、
支社配下の「支店」だけをリストに表示することができま
す。
13
できあがるレポートのイメージ
Aグループのユーザーから見た場合
Aグループに所属するユーザーが
レポートを実行した場合、
• すべての会社
• すべての支社
• すべての支店
を、選択することができます。
フィルターに従属関係を設定すること
で、より使いやすくなります。
15
Bグループのユーザーから見た場合
Bグループに所属するユーザーが
レポートを実行した場合、
• 所属会社のみ
• 所属会社配下の支社
• 所属会社配下の支店
を、選択することができます。
16
Cグループのユーザーから見た場合
Cグループに所属するユーザーが
レポートを実行した場合、
• 支社の所属会社
• 所属支社
• 所属支社の支店
を、選択することができます。
17
Dグループのユーザーから見た場合
Dグループに所属するユーザーが
レポートを実行した場合、
• 支店が所属する支社の所属会社
• 支店の所属支社
• 所属支店
を、選択することができます。
18
yellowfin.co.jp 19

More Related Content

Featured

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

階層型組織へのセキュリティ設定例