Interface IUserProfileService
- Namespace
- FoundationaLLM.Common.Interfaces
- Assembly
- FoundationaLLM.Common.dll
Provides methods for working with user profiles.
public interface IUserProfileService
- Extension Methods
Methods
GetUserProfileAsync(string)
Returns the user profile of the signed in user.
Task<UserProfile?> GetUserProfileAsync(string instanceId)
Parameters
instanceId
stringThe instance ID.
Returns
Exceptions
GetUserProfileForUserAsync(string, string)
Returns the user profile of the specified user.
Task<UserProfile?> GetUserProfileForUserAsync(string instanceId, string upn)
Parameters
instanceId
stringThe instance ID.
upn
stringThe user principal name of the user for whom to return the user profile.
Returns
UpsertUserProfileAsync(string, UserProfile)
Inserts or updates a user profile.
Task UpsertUserProfileAsync(string instanceId, UserProfile userProfile)
Parameters
instanceId
stringThe instance ID.
userProfile
UserProfileThe user profile to upsert.