---
title: "Interface IUserPostRegistrationContext"
slug: "scripting--stylelabs.m.scripting.types.v1_0.user.registration.post.iuserpostregistrationcontext"
abstract: ""
---
# Interface IUserPostRegistrationContext

Used for scripts that execute after a user was registered in the system.

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

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

## Syntax

```csharp
public interface IUserPostRegistrationContext
```

## 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 (M) 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.post.iuserpostregistrationcontext.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) |  |

### User

Gets the related user object in M.

#### Declaration

```csharp
IEntity User { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IEntity |  |
