<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koshiishi-sansan</author_name>
  <author_url>https://blog.hatena.ne.jp/koshiishi-sansan/</author_url>
  <blog_title>Sansan Tech Blog</blog_title>
  <blog_url>https://buildersbox.corp-sansan.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>インターン</anon>
  </categories>
  <description>この記事は、Sansan Advent Calendar 2025、16日目の記事です。 はじめに こんにちは、技術本部Digitization部Entry Engineeringグループgeesチームでインターンをしている輿石です。 geesチームは、名刺データ化システムを開発しています。 本記事では、もともと権限によるアクセス制御が存在しなかった内部向けの名刺データ化管理システムに対して、Railsのdefaultsを用いて「エンドポイントごとに必要な権限を宣言的に管理する仕組み」を導入した話をまとめます。ルーティングのdefaultsに「必要な権限情報」を付与し、その情報をもとにアクセス…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbuildersbox.corp-sansan.com%2Fentry%2F2025%2F12%2F16%2F144352&quot; title=&quot;Railsのdefaultsを用いた権限によるアクセス制御 - Sansan Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/sansantech/20260224/20260224193803.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-16 14:43:52</published>
  <title>Railsのdefaultsを用いた権限によるアクセス制御</title>
  <type>rich</type>
  <url>https://buildersbox.corp-sansan.com/entry/2025/12/16/144352</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
