<!--
{
  "availability" : [
    "DriverKit: -"
  ],
  "documentType" : "symbol",
  "framework" : "SCSIControllerDriverKit",
  "identifier" : "/documentation/SCSIControllerDriverKit/IOUserSCSIParallelInterfaceController/UserSetTargetProperties",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SCSIControllerDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserSCSIParallelInterfaceController@F@UserSetTargetProperties#k#*$@S@OSDictionary#"
  },
  "title" : "UserSetTargetProperties"
}
-->

# UserSetTargetProperties

Sets properties on the target.

```
virtual kern_return_t UserSetTargetProperties(SCSIDeviceIdentifier targetID, OSDictionary *properties);
```

## Parameters

`targetID`

The ID of the target with the properties you want to set.

`properties`

A dictionary containing key-value pairs of properties to set.

## Return Value

A value that indicates the result of setting the target’s properties. <doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> indicates success. For error definitions, see <doc://com.apple.documentation/documentation/iokit/iokit_constants>.

## Discussion

Your driver extension calls this method to set the specified target’s properties. The `properties` directory can contain the following keys:

- <doc://com.apple.documentation/documentation/kernel/kiopropertysasaddresskey>
- <doc://com.apple.documentation/documentation/kernel/kiopropertyfibrechannelnodeworldwidenamekey>
- <doc://com.apple.documentation/documentation/kernel/kiopropertyfibrechannelportworldwidenamekey>
- <doc://com.apple.documentation/documentation/kernel/kiopropertyfibrechanneladdressidentifierkey>
- <doc://com.apple.documentation/documentation/kernel/kiopropertyfibrechannelalpakey>.

The value of each property should be a pointer to a valid <doc://com.apple.documentation/documentation/DriverKit/OSString> object that represents the value for the property. The value must be of the proper type and size for the specified key.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)