Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 1.99 KB

getpermissions-method-adox.md

File metadata and controls

56 lines (46 loc) · 1.99 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords apitype
GetPermissions Method (ADOX)
GetPermissions Method (ADOX)
rothja
jroth
01/19/2017
sql
ado
reference
_User25::GetPermissions
_Group25::raw_GetPermissions
_Group25::GetPermissions
_User25::raw_GetPermissions
GetPermissions method [ADOX]
COM

GetPermissions Method (ADOX)

Returns the permissions for a group or user on an object or object container.

Syntax

  
ReturnValue=GroupOrUser.GetPermissions(Name, ObjectType    [,ObjectTypeId])  

Return Value

Returns a Long value that specifies a bitmask containing the permissions that the group or user has on the object. This value can be one or more of the RightsEnum constants.

Parameters

Name
A Variant value that specifies the name of the object for which to set permissions. Set Name to a null value if you want to get the permissions for the object container.

ObjectType
A Long value which can be one of the ObjectTypeEnum constants, that specifies the type of the object for which to get permissions.

ObjectTypeId
Optional. A Variant value that specifies the GUID for a provider object type not defined by the OLE DB specification. This parameter is required if ObjectType is set to adPermObjProviderSpecific; otherwise, it is not used.

Applies To

:::row::: :::column::: Group Object (ADOX)
:::column-end::: :::column::: User Object (ADOX)
:::column-end::: :::row-end:::

See Also

GetPermissions and SetPermissions Methods Example (VB)
Name Property (ADOX)
SetPermissions Method (ADOX)