Display Salesforce user details.
Display default admin user Information
Using following sf command, we can get profile name, org ID, access token, instance URL, login URL, and alias.
sf org display userDisplay specified user Details
we can also get other user details using following sf command.
sf org display user -o user1@my.org
// to get in json format
sf org display user --target-org user1@my.org --jsonFlags:
- -o/--target-org : Username or alias of the target org.
- --json : Format output as json.
Source:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_org_commands_unified.htm#cli_reference_org_display_user_unified
