RefreshNTGroupMembership Method in Class SMS_SecuredObject

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

In Configuration Manager, the RefreshNTGroupMembership Windows Management Instrumentation (WMI) class method refreshes the information that is stored about the user's Windows NT group membership.

The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.

UInt32 RefreshNTGroupMembership(
    String GroupMembership[]
)

Parameters

  • GroupMembership
    Data type: String

    Qualifiers: [out]

    List of Windows NT group memberships for the user.

Return Values

A UInt32 data type.

Remarks

The provider typically caches information about the current user's membership in Windows user groups and refreshes the user's membership information approximately every 10 minutes. Calling this method causes the provider to refresh this information.

Example Code

The following example shows how to call the RefreshNTGroupMembership method to refresh the Windows NT group membership list.

Dim Security As SWbemObject
Dim Groups() As Variant
Set Security = GetObject("winmgmts:root\sms\site_<sitecode>:SMS_SecuredObject")
Security.RefreshNTGroupMembership Groups

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Concepts

SMS_SecuredObject Server WMI Class
GetCollectionsWithResourcePermissions Method in Class SMS_SecuredObject
UserHasPermissions Method in Class SMS_SecuredObject