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

# NSCredential

> Credentials supported for authentication

Credentials supported for authentication

## Constructors

### NSCredential()

```crmscript theme={null}
NSCredential
```

Initializes a new instance of the NSCredential class.

## Methods

## GetDisplayValue()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The value displayed to the user. This will typically be the users login name in active directory.

**Example:**

```crmscript theme={null}
NSCredential thing;
String displayValue = thing.GetDisplayValue();
```

## GetType()

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

**Returns:** [CRMScript.NetServer.NSCredentialType](CRMScript.NetServer.NSCredentialType) - Description of credential type.

**Example:**

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

## GetValue()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The actual value of the credentials. Typically the password or the users SID in active directory.

**Example:**

```crmscript theme={null}
NSCredential thing;
String value = thing.GetValue();
```

## SetDisplayValue(String)

```crmscript theme={null}
Void SetDisplayValue(String displayValue)
```

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

**Example:**

```crmscript theme={null}
NSCredential thing;
String displayValue;
thing.SetDisplayValue(displayValue);
```

## SetType(NSCredentialType)

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

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

**Example:**

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

## SetValue(String)

```crmscript theme={null}
Void SetValue(String value)
```

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

**Example:**

```crmscript theme={null}
NSCredential thing;
String value;
thing.SetValue(value);
```


## Related topics

- [NSUser](/en/automation/crmscript/reference/CRMScript.NetServer.NSUser.md)
- [NSUserAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSUserAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [NSCredentialType](/en/automation/crmscript/reference/CRMScript.NetServer.NSCredentialType.md)
- [NSCredentialUser](/en/automation/crmscript/reference/CRMScript.NetServer.NSCredentialUser.md)
- [NSCredentialsGroup](/en/automation/crmscript/reference/CRMScript.NetServer.NSCredentialsGroup.md)
