---
title: "GSSCredentialCopyName(_:)"
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/gsscredentialcopyname(_:)"
---

# GSSCredentialCopyName(_:)

Returns the name describing the credential.

## Declaration

```swift
func GSSCredentialCopyName(_ cred: gss_cred_id_t) -> gss_name_t?
```

## Parameters

- `cred`: The credential from which to get the name.

## Return Value

Return Value A GSS name for the given credential, or NULL on failure. Release this object with a call to gss_release_name(_:_:) when you are done with it.

## 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)
- [GSSCredentialCopyUUID(_:)](gss/gsscredentialcopyuuid(_:).md)
- [gss_pseudo_random(_:_:_:_:_:_:)](gss/gss_pseudo_random(_:_:_:_:_:_:).md)
