IAccount Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The IAccount interface represents information about a single account.
The same user can be present in different tenants, that is, a user can have multiple accounts.
An IAccount
is returned in the AuthenticationResult.Account property, and can be used as parameters
of PublicClientApplication and ConfidentialClientApplication methods acquiring tokens such as AcquireTokenSilent(IEnumerable<String>, IAccount)
public interface IAccount
type IAccount = interface
Public Interface IAccount
Properties
Environment |
Gets a string containing the identity provider for this account, e.g. |
HomeAccountId |
AccountId of the home account for the user. This uniquely identifies the user across AAD tenants. |
Username |
Gets a string containing the displayable value in UserPrincipalName (UPN) format, e.g. |
Extension Methods
GetTenantProfiles(IAccount) |
The same account can exist in its home tenant and also as a guest in multiple other tenants. TenantProfile is derived from the ID token for that tenant. |
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기