開発者コンソールの使用中、System クラスの setPassword メソッドを使用して新規作成ユーザーのパスワードリセットを強制すると、[パスワードの変更] ページにリダイレクトされる場合があります。任意のテキストボックスをクリックすると、ユーザーは秘密の質問を設定せずに組織にログインできます。
注意:setPassword() を使用してユーザーのパスワードを設定した場合、秘密の質問を設定したことがないユーザーはログイン時に [パスワードの変更] ページにリダイレクトされ、秘密の質問の設定が求められます。
これは、Salesforce の設計どおりの動作 (WAD) です。Enter キーを押すのは [キャンセル] ボタンのクリックと同じ意味です。ページのパスワード要件が満たされるまで、[保存] ボタンは有効になりません。ユーザーのパスワードは変更されていません。
ログアウトしてからもう一度ログインすると、パスワードの変更ページが表示されます。これは、ユーザーがその時点で自分のパスワードまたはセキュリティの質問を変更する必要がないように設計されています。
再現手順:
1.組織にログインします。
2.[ユーザーの管理] | [ユーザー] | 「新規ユーザー」を検索します。
3.ユーザーを作成し、次のチェックボックスをオフにします。
- パスワードをリセットしてユーザーにすぐに通知する
4.[保存] をクリックします。
5.開発者コンソールを開きます。
6. 匿名実行ウィンドウを開き、「system.setPassword('005xx0000000XXX', 'passwordText');」、つまり「System.setPassword(userid, password);」と入力します。
7. [実行] をクリックします。
8.組織からログアウトします。
9.次に、login.salesforce.com URL を使用して組織にログインします。
注意: ドメイン名を使用している場合は、login.salesforce.com の代わりに自身のドメイン名を入力します。
10.ユーザー名とパスワードを入力します。 パスワードの変更画面にリダイレクトされます。いずれかのテキストボックスをクリックして Enter キーを押すと、ログインします。
注意: 開発者コンソールからのパスワードリセットでは、ユーザーのプロファイルの [パスワードポリシー] で設定したパスワードの複雑さに従う必要があります。
開発者コンソールについての詳細は、以下のヘルプドキュメントを参照してください。
開発者コンソールを開く
000387826

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.