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

# NSUserInfo

## Constructors

### NSUserInfo()

```crmscript theme={null}
NSUserInfo
```

Initializes a new instance of the NSUserInfo class.

## Methods

## GetCanLogon()

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

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Bool canLogon = thing.GetCanLogon();
```

## GetDeleted()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - If true, the user is retired and should have no rights, not appear in lists, etc.

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Bool deleted = thing.GetDeleted();
```

## GetEjUserId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - ID of the ej user record corresponding to this associate; 0 for associates that are not ej users.

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer ejUserId = thing.GetEjUserId();
```

## GetGrantedLicenses()

```crmscript theme={null}
String[] GetGrantedLicenses()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String)\[]

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String[] grantedLicenses = thing.GetGrantedLicenses();
```

## GetPersonId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Owning person record.

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer personId = thing.GetPersonId();
```

## GetRank()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Rank order.

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer rank = thing.GetRank();
```

## GetRoleName()

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

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String roleName = thing.GetRoleName();
```

## GetRoleTooltip()

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

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String roleTooltip = thing.GetRoleTooltip();
```

## GetTooltip()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Tooltip or other description.

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String tooltip = thing.GetTooltip();
```

## GetUserGroupId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary group membership, See the UserGroupLink database table reference for secondary memberships.

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer userGroupId = thing.GetUserGroupId();
```

## GetUserGroupName()

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

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String userGroupName = thing.GetUserGroupName();
```

## GetUserGroupTooltip()

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

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String userGroupTooltip = thing.GetUserGroupTooltip();
```

## GetUserInfoId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer userInfoId = thing.GetUserInfoId();
```

## GetUserName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Initials, also login name, possibly database user name.

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String userName = thing.GetUserName();
```

## GetUserType()

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

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer userType = thing.GetUserType();
```

## SetCanLogon(Bool)

```crmscript theme={null}
Void SetCanLogon(Bool canLogon)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Bool canLogon;
thing.SetCanLogon(canLogon);
```

## SetDeleted(Bool)

```crmscript theme={null}
Void SetDeleted(Bool deleted)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Bool deleted;
thing.SetDeleted(deleted);
```

## SetEjUserId(Integer)

```crmscript theme={null}
Void SetEjUserId(Integer ejUserId)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer ejUserId;
thing.SetEjUserId(ejUserId);
```

## SetGrantedLicenses(String\[])

```crmscript theme={null}
Void SetGrantedLicenses(String[] grantedLicenses)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String[] grantedLicenses;
thing.SetGrantedLicenses(grantedLicenses);
```

## SetPersonId(Integer)

```crmscript theme={null}
Void SetPersonId(Integer personId)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer personId;
thing.SetPersonId(personId);
```

## SetRank(Integer)

```crmscript theme={null}
Void SetRank(Integer rank)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer rank;
thing.SetRank(rank);
```

## SetRoleName(String)

```crmscript theme={null}
Void SetRoleName(String roleName)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String roleName;
thing.SetRoleName(roleName);
```

## SetRoleTooltip(String)

```crmscript theme={null}
Void SetRoleTooltip(String roleTooltip)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String roleTooltip;
thing.SetRoleTooltip(roleTooltip);
```

## SetTooltip(String)

```crmscript theme={null}
Void SetTooltip(String tooltip)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String tooltip;
thing.SetTooltip(tooltip);
```

## SetUserGroupId(Integer)

```crmscript theme={null}
Void SetUserGroupId(Integer userGroupId)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer userGroupId;
thing.SetUserGroupId(userGroupId);
```

## SetUserGroupName(String)

```crmscript theme={null}
Void SetUserGroupName(String userGroupName)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String userGroupName;
thing.SetUserGroupName(userGroupName);
```

## SetUserGroupTooltip(String)

```crmscript theme={null}
Void SetUserGroupTooltip(String userGroupTooltip)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String userGroupTooltip;
thing.SetUserGroupTooltip(userGroupTooltip);
```

## SetUserInfoId(Integer)

```crmscript theme={null}
Void SetUserInfoId(Integer userInfoId)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer userInfoId;
thing.SetUserInfoId(userInfoId);
```

## SetUserName(String)

```crmscript theme={null}
Void SetUserName(String userName)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
String userName;
thing.SetUserName(userName);
```

## SetUserType(Integer)

```crmscript theme={null}
Void SetUserType(Integer userType)
```

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

**Example:**

```crmscript theme={null}
NSUserInfo thing;
Integer userType;
thing.SetUserType(userType);
```


## Related topics

- [NSUserAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSUserAgent.md)
- [NSPersonEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSPersonEntity.md)
- [Users](/en/admin/user-management/index.md)
- [Get User Info](/en/api/reference/restful/agent/user_agent/get-user-info.md)
- [Get user info](/en/automation/crmscript/howto/contact/get-user.md)
- [Resolve User From Info](/en/api/reference/restful/agent/user_agent/resolve-user-from-info.md)
