# BuildUserProfileFromRecord

## <span class="mw-headline" id="bkmrk-what-it-does-1">What it does</span>

Creates a TS user from data in a record (name, email)

- Creates a user
- Assigns to a group
- Sends profile to user

## <span class="mw-headline" id="bkmrk-how-to-invoke-1">How to invoke</span>

Set the codeunit on the entity to: **dk.p2e.blanket.codeunit.common.BuildUserProfileFromRecord**

## <span class="mw-headline" id="bkmrk-configuration-1">Configuration</span>

Set the folowing configutations

- fieldUserLink
- fieldDataName
- fieldDataMail
- defaultGroupID
- requiredStatusID

## <span class="mw-headline" id="bkmrk-developer-info-1">Developer info</span>

- <span class="mw-headline">Type: [CodeunitFormevents](https://docs.tsnocode.com/books/codeunit-reference/chapter/formevents)</span>
- <span class="mw-headline">Security: None</span>
- <span class="mw-headline">Classpath: dk.p2e.blanket.codeunit.common.BuildUserProfileFromRecord</span>