<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Collaboration",
  "identifier" : "/documentation/Collaboration/CBUserIdentity",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Collaboration"
    ],
    "preciseIdentifier" : "c:objc(cs)CBUserIdentity"
  },
  "title" : "CBUserIdentity"
}
-->

# CBUserIdentity

An object of the `CBUserIdentity` class represents a user identity and is used for accessing the attributes of a user identity from an identity authority. The principal attributes of `CBUserIdentity` are a POSIX user identifier (UID), password, and certificate.

```
class CBUserIdentity
```

## Topics

### Password Authentication

[`-  authenticateWithPassword:`](/documentation/Collaboration/CBUserIdentity/authenticate(withPassword:))

Returns a Boolean value indicating whether the given password is correct for the identity.

[`certificate`](/documentation/Collaboration/CBUserIdentity/certificate)

Returns the public authentication certificate associated with a user identity.

[`enabled`](/documentation/Collaboration/CBUserIdentity/isEnabled)

Returns a Boolean value indicating whether the identity is allowed to authenticate.

### Using UIDs

[`posixUID`](/documentation/Collaboration/CBUserIdentity/posixUID)

Returns the POSIX UID of the identity.

[`+  userIdentityWithPosixUID:authority:`](/documentation/Collaboration/CBUserIdentity/init(posixUID:authority:))

Returns the user identity with the given POSIX UID in the specified identity authority.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

[`CBIdentity`](/documentation/Collaboration/CBIdentity)

---

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)