---
title: "GSSCredentialCopyUUID(_:)"
framework: GSS
role: symbol
role_heading: Function
platforms: [iOS 7.0+, iPadOS 7.0+, Mac Catalyst 13.1+, macOS 10.9+, visionOS 1.0+]
path: "gss/gsscredentialcopyuuid(_:)"
---

# GSSCredentialCopyUUID(_:)

Returns a copy of the universally unique identifier corresponding to a GSS credential.

## Declaration

```swift
func GSSCredentialCopyUUID(_ credential: gss_cred_id_t) -> Unmanaged<CFUUID>?
```

## Parameters

- `credential`: The credential whose unique identifier you want.

## Return Value

Return Value A CFUUID object that corresponds to the given credential. Use CFRelease to free this object’s memory when you are done with it.

## Discussion

Discussion When you want to restore the credential from the CFUUID, use GSSCreateCredentialFromUUID(_:).

## See Also

### Acquisition

- [gss_aapl_initial_cred(_:_:_:_:_:)](gss/gss_aapl_initial_cred(_:_:_:_:_:).md)
- [gss_acquire_cred(_:_:_:_:_:_:_:_:)](gss/gss_acquire_cred(_:_:_:_:_:_:_:_:).md)
- [gss_acquire_cred_with_password(_:_:_:_:_:_:_:_:_:)](gss/gss_acquire_cred_with_password(_:_:_:_:_:_:_:_:_:).md)
- [GSSCredentialCopyName(_:)](gss/gsscredentialcopyname(_:).md)
- [gss_pseudo_random(_:_:_:_:_:_:)](gss/gss_pseudo_random(_:_:_:_:_:_:).md)
