> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Authorization.AuthorizationSystemUserTicket

# <a id="SuperOffice_WebApi_Authorization_AuthorizationSystemUserTicket" /> Class AuthorizationSystemUserTicket

Namespace: [SuperOffice.WebApi.Authorization](SuperOffice.WebApi.Authorization.md)\
Assembly: SuperOffice.WebApi.Authorization.SystemUserTicket.dll

SOTicket for use with SystemUser tokens in CRM online only. See <xref href="SuperOffice.WebApi.Authorization.IAuthorization" data-throw-if-not-resolved="false" />.

```csharp theme={null}
public class AuthorizationSystemUserTicket : AuthorizationTicket, IAddHeaders
```

#### Inheritance

AuthorizationTicket ←
[AuthorizationSystemUserTicket](SuperOffice.WebApi.Authorization.AuthorizationSystemUserTicket.md)

#### Implements

IAddHeaders

## Constructors

### <a id="SuperOffice_WebApi_Authorization_AuthorizationSystemUserTicket__ctor_SuperOffice_SystemUser_SystemUserInfo_System_String_" /> AuthorizationSystemUserTicket(SystemUserInfo, string)

Ticket Authorization constructor used in CRM online scenario's where client secret is required.

```csharp theme={null}
public AuthorizationSystemUserTicket(SystemUserInfo systemUserInfo, string ticket)
```

#### Parameters

`systemUserInfo` SystemUserInfo

Contains information require to get System User ticket.

`ticket` [string](https://learn.microsoft.com/dotnet/api/system.string)

System user SOTicket string: "7T:abc123=="

## Properties

### <a id="SuperOffice_WebApi_Authorization_AuthorizationSystemUserTicket_SystemUserInfo" /> SystemUserInfo

Contains information require to get System User ticket.

```csharp theme={null}
public SystemUserInfo SystemUserInfo { get; }
```

#### Property Value

SystemUserInfo

## Methods

### <a id="SuperOffice_WebApi_Authorization_AuthorizationSystemUserTicket_AddHeaders_System_Net_Http_Headers_HttpRequestHeaders_" /> AddHeaders(HttpRequestHeaders)

Called by the AgentBase and adds the SO-AppToken.

```csharp theme={null}
public void AddHeaders(HttpRequestHeaders headers)
```

#### Parameters

`headers` [HttpRequestHeaders](https://learn.microsoft.com/dotnet/api/system.net.http.headers.httprequestheaders)

Collection of HttpRequest headers.


## Related topics

- [SuperOffice.WebApi.Authorization](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.md)
- [SuperOffice.WebApi.Authorization.SystemUserTicket.Exceptions.SystemUserException](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.SystemUserTicket.Exceptions.SystemUserException.md)
- [SuperOffice.WebApi.Authorization.SystemUserTicket.Exceptions](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.SystemUserTicket.Exceptions.md)
- [SuperOffice.WebApi.Authorization.AuthorizationTicket](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.AuthorizationTicket.md)
- [SuperOffice.WebApi.Authorization.AuthorizationUsernamePassword](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.AuthorizationUsernamePassword.md)
- [SuperOffice.WebApi.Authorization.IAuthorization](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.IAuthorization.md)
