<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ColorSync",
  "identifier" : "/documentation/ColorSync/ColorSyncDeviceSetCustomProfiles(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "ColorSync"
    ],
    "preciseIdentifier" : "c:@F@ColorSyncDeviceSetCustomProfiles"
  },
  "title" : "ColorSyncDeviceSetCustomProfiles(_:_:_:)"
}
-->

# ColorSyncDeviceSetCustomProfiles(_:_:_:)

Sets custom profiles for a device in lieu of its factory profiles.

```
func ColorSyncDeviceSetCustomProfiles(_ deviceClass: CFString!, _ deviceID: CFUUID!, _ profileInfo: CFDictionary!) -> Bool
```

## Parameters

`deviceClass`

The class of the device.

`deviceID`

The identifier of the device.

`profileInfo`

A `CFDictionary` containing the information about custom profiles to set in
lieu of factory profiles.

## Return Value

`true` on success and `false` in case of failure.

## Discussion

The `profileInfo` dictionary requires the following keys:

- ProfileIDs, which must be a subset of the ProfileIDs you registered the device with, or
  [`kColorSyncDeviceDefaultProfileID`](/documentation/ColorSync/kColorSyncDeviceDefaultProfileID) for setting a custom default profile.

It requires the following values:

- The `CFURLRef` of the profile to set as a custom profile.

It may also include the following optional keys:

- [`kColorSyncProfileHostScope`](/documentation/ColorSync/kColorSyncProfileHostScope): The host scope of the profile; one of `kCFPreferencesCurrentHost`
  or `kCFPreferencesAnyHost`. If you don’t specify it, the framework assumes `kCFPreferencesCurrentHost`.
- [`kColorSyncProfileUserScope`](/documentation/ColorSync/kColorSyncProfileUserScope): The user scope of the profile; one of `kCFPreferencesCurrentUser`
  or `kCFPreferencesAnyUser`. If you don’t specify it, the framework assumes `kCFPreferencesCurrentUser`.

> Note: Profile scope for custom profiles cannot exceed the scope of the factory profiles.

> Note: There is only one host scope and user scope per dictionary (that is, per call).

> Note: Pass `kCFNull` in lieu of the profile URL to unset the custom profile and reset the
> current profile to the factory profile.

---

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)