NetAccessAdd or Net32AccessAdd

The NetAccessAdd API is used to add a new access permission record to a particular resource. This record specifies the level of access permission to be granted to a user or group ID for that resource.