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

# NSCredentialsGroup

> When the CredentialType's control is of type link, the user is selected from a source like active directory.  This will then be the organisational unit (e.g. user security group) in active directory. Only one group is listed if the system does not support groups.

When the CredentialType's control is of type link, the user is selected from a source like active directory.  This will then be the organisational unit (e.g. user security group) in active directory. Only one group is listed if the system does not support groups.

## Constructors

### NSCredentialsGroup()

```crmscript theme={null}
NSCredentialsGroup
```

Initializes a new instance of the NSCredentialsGroup class.

## Methods

## GetDisplayName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The display name of the group to display to the user.

**Example:**

```crmscript theme={null}
NSCredentialsGroup thing;
String displayName = thing.GetDisplayName();
```

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The full name of the group as needed to discover the users within the group.

<Note>
  This value should not be displayed to the end user!
</Note>

**Example:**

```crmscript theme={null}
NSCredentialsGroup thing;
String name = thing.GetName();
```

## SetDisplayName(String)

```crmscript theme={null}
Void SetDisplayName(String displayName)
```

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

**Example:**

```crmscript theme={null}
NSCredentialsGroup thing;
String displayName;
thing.SetDisplayName(displayName);
```

## SetName(String)

n

```crmscript theme={null}
Void SetName(String name)
```

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

<Note>
  This value should not be displayed to the end user.
</Note>

**Example:**

```crmscript theme={null}
NSCredentialsGroup thing;
String name;
thing.SetName(name);
```


## Related topics

- [NSUserAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSUserAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [NSCredentialsGroupUsers](/en/automation/crmscript/reference/CRMScript.NetServer.NSCredentialsGroupUsers.md)
- [Find Credentials Groups](/en/api/reference/restful/agent/user_agent/find-credentials-groups.md)
- [Get Credential Users In Group](/en/api/reference/restful/agent/user_agent/get-credential-users-in-group.md)
- [SuperOffice.WebApi.Data.CredentialsGroup](/en/api/reference/webapi/SuperOffice.WebApi.Data.CredentialsGroup.md)
