<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GSS",
  "identifier" : "/documentation/GSS/GSSCreateCredentialFromUUID(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "GSS"
    ],
    "preciseIdentifier" : "c:@F@GSSCreateCredentialFromUUID"
  },
  "title" : "GSSCreateCredentialFromUUID(_:)"
}
-->

# GSSCreateCredentialFromUUID(_:)

Creates a credential from a universally unique identifier.

```
func GSSCreateCredentialFromUUID(_ uuid: CFUUID) -> gss_cred_id_t?
```

## Parameters

`uuid`

The universally unique identifier of the credential to fetch.

## Return Value

A GSS credential for a given `CF``UUID` object if the credential exists, otherwise `NULL`. Free the credential’s memory with [`gss_release_cred(_:_:)`](/documentation/GSS/gss_release_cred(_:_:)) when you are done with it.

## Discussion

Use this function to get the credential corresponding to a `CFUUID` object that you originally obtained using a call to [`GSSCredentialCopyUUID(_:)`](/documentation/GSS/GSSCredentialCopyUUID(_:)).

---

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)