Gemstone Common Library
Show/Hide TOC

# UserInfoGroupNameToSID Method

Converts the given group name to the SID corresponding to that name.

## Definition

Namespace: Gemstone.Identity
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
C#
View Source Request Example

    public static string GroupNameToSID(
    	string groupName
    )

VB
View Source Request Example

    Public Shared Function GroupNameToSID (
    	groupName As String
    ) As String

C++
View Source Request Example

    public:
    static String^ GroupNameToSID(
    	String^ groupName
    )

JavaScript
View Source Request Example

    Gemstone.Identity.UserInfo.GroupNameToSID = function(groupName);

#### Parameters

groupName String
  The group name for which to look up the SID.

#### Return Value

String
The SID for the given group name, or the group name if no SID can be found.

## Remarks

If the groupName cannot be converted to a SID, groupName will be the return value.

## See Also

#### Reference

UserInfo Class
Gemstone.Identity Namespace