---
title: "Interface IUserPreRegistrationContext"
slug: "scripting--stylelabs.m.scripting.types.v1_0.user.registration.pre.iuserpreregistrationcontext"
abstract: ""
---
# Interface IUserPreRegistrationContext

Defines a user pre registration context.

## Namespace: StylelabsStylelabs.MStylelabs.M.ScriptingStylelabs.M.Scripting.TypesStylelabs.M.Scripting.Types.V1_0UserStylelabs.M.Scripting.Types.V1_0.User.RegistrationPre

## Assembly: Stylelabs.M.Scripting.Types.dll

## Syntax

```csharp
public interface IUserPreRegistrationContext
```

## Properties

### [AuthenticationSource](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.authenticationsource.html)

Gets the source of registration, which can be internal (Sitecore Content Hub) or external (e.g. from an SSO).

#### Declaration

```csharp
AuthenticationSource AuthenticationSource { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [AuthenticationSource](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.authenticationsource.html) |  |

### [ExternalUserInfo](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.externaluserinfo.html)

Gets information about the user that the external provider supplied. Only set (and useful) when [AuthenticationSource](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.registration.pre.iuserpreregistrationcontext.html) is AuthenticationSource.External .

#### Declaration

```csharp
ExternalUserInfo ExternalUserInfo { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [ExternalUserInfo](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.externaluserinfo.html) |  |

### [InternalUserInfo](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.internaluserinfo.html)

Gets information about a user that is supplied from Sitecore Content Hub internally. Only set (and useful) when [AuthenticationSource](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.registration.pre.iuserpreregistrationcontext.html) is AuthenticationSource.Internal .

#### Declaration

```csharp
InternalUserInfo InternalUserInfo { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [InternalUserInfo](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.internaluserinfo.html) |  |
