0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

セキュリティ変更: MFA を未登録の SSO ユーザーに対する直接ログインのブロック

0
Last updated at Posted at 2026-11-30

このヘルプらしいけど、対象ユーザを探すためのSOQLがありますね。
とりあえず、試してみようかと...

SELECT Id, Username, Name FROM User WHERE IsActive = true AND Id NOT IN ( 

SELECT UserId FROM TwoFactorMethodsInfo WHERE HasSalesforceAuthenticator = true OR HasTotp = true OR HasSecurityKey = true OR HasU2F = true OR HasBuiltInAuthenticator = true
)

sObject type 'TwoFactorMethodsInfo' is not supported. というエラーになる

image.png

何で?

Special Access Rules:
You need the Manage MFA in API user permission to access this object.

Manage MFA in API という権限が必要?

権限セットを作成します。

Manage MFA in APIはシステ権限にあるようです。権限セットを作成してユーザを割り当てます

image.png

あちゃぁ、またエラーですね。何でだろう。

たまには、Agentforceに聞いてみるか

image.png

ということは、権限セットにライセンスが必要?
仕方ない、作った権限セットを削除して再作成します。それからユーザを割り当てると...

image.png

こんどは、うまく割り当てられた。

Use Tooling APIのチェックを外す

しかし、まだエラーですね。

image.png

TwoFactorMethodsInfo のオブジェクトリファレンスには「Developer ConsoleではUse Tooling APIをOFFにしてください」という具体的な注意書きはないけど、ここはオフにして検索します。

image.png

検索できましたねぇ。 かなり大変でした。たったこれだけなのに...

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?