| title | GetPermissions Method (ADOX) | Microsoft Docs | ||||
|---|---|---|---|---|---|
| ms.prod | sql | ||||
| ms.prod_service | connectivity | ||||
| ms.technology | connectivity | ||||
| ms.custom | |||||
| ms.date | 01/19/2017 | ||||
| ms.reviewer | |||||
| ms.topic | conceptual | ||||
| apitype | COM | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | df201c1f-c76a-465d-98f0-83b7fc36e6e3 | ||||
| author | MightyPen | ||||
| ms.author | genemi |
Returns the permissions for a group or user on an object or object container.
ReturnValue=GroupOrUser.GetPermissions(Name, ObjectType [,ObjectTypeId])
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.
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.
| Group Object (ADOX) | User Object (ADOX) |
GetPermissions and SetPermissions Methods Example (VB)
Name Property (ADOX)
SetPermissions Method (ADOX)