> ## 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.

# NSCredentialType

> Description of credential type

Description of credential type

## Constructors

### NSCredentialType()

```crmscript theme={null}
NSCredentialType
```

Initializes a new instance of the NSCredentialType class.

## Methods

## GetCanCreatePerson()

```crmscript theme={null}
Bool GetCanCreatePerson()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool)

**Example:**

```crmscript theme={null}
NSCredentialType thing;
Bool canCreatePerson = thing.GetCanCreatePerson();
```

## GetDescription()

```crmscript theme={null}
String GetDescription()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Description of the authentication type.

<Note>
  This value is used in a list of authentication providers that can be chosen by an end user and should be a fairly descriptive text. This will typically be SuperOffice is responsible for username and password for a password scenario.
</Note>

**Example:**

```crmscript theme={null}
NSCredentialType thing;
String description = thing.GetDescription();
```

## GetDisplayType()

```crmscript theme={null}
String GetDisplayType()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of the credentials to be displayed in the user interface.

<Note>
  This will typically be Password for user-name/password scenarios and Active Directory User for AD integration.
</Note>

**Example:**

```crmscript theme={null}
NSCredentialType thing;
String displayType = thing.GetDisplayType();
```

## GetIsUserNameSupported()

```crmscript theme={null}
Bool GetIsUserNameSupported()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool)

**Example:**

```crmscript theme={null}
NSCredentialType thing;
Bool isUserNameSupported = thing.GetIsUserNameSupported();
```

## GetType()

```crmscript theme={null}
String GetType()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Type of credentials, corresponding to name of plugin and type in the credentials table.

**Example:**

```crmscript theme={null}
NSCredentialType thing;
String type = thing.GetType();
```

## GetValueControl()

```crmscript theme={null}
Integer GetValueControl()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Type of control used to display the value. See \<xref href="CRMScript.NetServer.CredentialControlType" data-throw-if-not-resolved="false">\</xref>.

**Example:**

```crmscript theme={null}
NSCredentialType thing;
Integer valueControl = thing.GetValueControl();
```

## SetCanCreatePerson(Bool)

```crmscript theme={null}
Void SetCanCreatePerson(Bool canCreatePerson)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCredentialType thing;
Bool canCreatePerson;
thing.SetCanCreatePerson(canCreatePerson);
```

## SetDescription(String)

```crmscript theme={null}
Void SetDescription(String description)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

<Note>
  This value is used in a list of authentication providers that can be chosen by an end user and should be a fairly descriptive text. This will typically be SuperOffice is responsible for username and password for a password scenario.
</Note>

**Example:**

```crmscript theme={null}
NSCredentialType thing;
String description;
thing.SetDescription(description);
```

## SetDisplayType(String)

```crmscript theme={null}
Void SetDisplayType(String displayType)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

<Note>
  This will typically be Password for user-name/password scenarios and Active Directory User for AD integration.
</Note>

**Example:**

```crmscript theme={null}
NSCredentialType thing;
String displayType;
thing.SetDisplayType(displayType);
```

## SetIsUserNameSupported(Bool)

```crmscript theme={null}
Void SetIsUserNameSupported(Bool isUserNameSupported)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCredentialType thing;
Bool isUserNameSupported;
thing.SetIsUserNameSupported(isUserNameSupported);
```

## SetType(String)

```crmscript theme={null}
Void SetType(String type)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCredentialType thing;
String type;
thing.SetType(type);
```

## SetValueControl(Integer)

```crmscript theme={null}
Void SetValueControl(Integer valueControl)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCredentialType thing;
Integer valueControl;
thing.SetValueControl(valueControl);
```


## Related topics

- [NSCredential](/en/automation/crmscript/reference/CRMScript.NetServer.NSCredential.md)
- [NSUserAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSUserAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [Get Credential Types](/en/api/reference/restful/rest/user/get-credential-types.md)
- [Get Credential Types For User Type](/en/api/reference/restful/agent/user_agent/get-credential-types-for-user-type.md)
