- Home [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Getting started
- Use cases
-
API
- Object types
- Data types
-
Global constants
- Application
- ApplicationUserProfile
- ApplicationWithBatcher
- ApplicationWithParams
- BrandingSettings
- CompanyInfo
- Converter
- Directories
- Files
- HttpApiHandler
- HttpApiRequest
- ICache
- IStorage
- MailMessage
- Mailbox
- OrganisationStructure
- OrganisationStructureTree
- Portal
- PortalPageInfo
- PortalSettings
- Portals
- Process
- Processes
- ProductionSchedule
- Reminders
- Replacements
- Serial
- ServerCollection
- Service
- SignupUrlParams
- SystemCollections
- SystemCollectionsWithEvents
- SystemCollectionsWithFilterEvents
- Templater
- Translator
- UserGroups
- Users
- Watermarks
- Report
- Reports
- SR
- Work with apps
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Object of the system app for external user's profiles
This object is used to work with user profiles on portals. As a separate app, a profile can store additional information about an external user. You can also use this app to organize complex interactions and processes on the portal.
Type parameters
T: ItemData
P: ItemData
Hierarchy
Methods
block
Lock an external user’s profile.
const profile = Context.data.external_user1; if (profile) { await Global.ns._system_catalogs.app._user_profiles.block(profile); }
If you pass an item of another app to the
item
parameter, an error will be returned.Parameters
item: ApplicationItemRef<T, P>
Returns Promise<void>
getByUser
Get an external user’s profile using the associated account.
const user = Context.data.__createdBy; if (user) { const portal_profile = await Global.ns._system_catalogs.app._user_profiles. getByUser(user); }
Parameters
user: UserItem
Returns Promise<ApplicationItemRef<T, P> | undefined>
A profile of an external user or
undefined
if no profile is linked to the account.getUser
Get an external user’s account using the profile associated with it.
const profile = Context.data.external_user1; if (profile) { await Global.ns._system_catalogs.app._user_profiles.block(profile); }
If you pass an item of another app to the
item
parameter, an error will be returned.Parameters
item: ApplicationItemRef<T, P>
Returns Promise<UserItem | undefined>
unblock
Unlock an external user’s profile.
const profile = Context.data.external_user1; if (profile) { await Global.ns._system_catalogs.app._user_profiles.block(profile); }
If you pass an item of another app to the
item
parameter, an error will be returned.Parameters
item: ApplicationItemRef<T, P>
Returns Promise<void>
Methods