---
title: kSecAttrAccount
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattraccount
---

# kSecAttrAccount

A key whose value is a string indicating the item’s account name.

## Declaration

```swift
let kSecAttrAccount: CFString
```

## Mentioned in

Searching for keychain items Updating and deleting keychain items

## Discussion

Discussion The corresponding value is of type CFString and contains an account name. Items of class kSecClassGenericPassword and kSecClassInternetPassword have this attribute.
