ProfileManager wraps the response of the profile REST method. Created by B24HelperManager.loadData when LoadDataType.Profile is requested; reachable through B24HelperManager.profileInfo.
Usage
import { useB24Helper, LoadDataType } from '@bitrix24/b24jssdk'
const { initB24Helper, getB24Helper } = useB24Helper()
await initB24Helper($b24, [LoadDataType.Profile])
const profile = getB24Helper().profileInfo.data
console.log(profile.id, profile.name, profile.lastName, profile.isAdmin)
Getter data
get data(): TypeUser
Returns the typed profile snapshot. Throws 'ProfileManager.data not initialized' if loadData has not been called yet.