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

# authenticate(withPassword:)

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

```
func authenticate(withPassword password: String) -> Bool
```

## Parameters

`password`

The password to test for the identity.

## Return Value

`TRUE` if the password is correct; otherwise, `FALSE`.

## See Also

  [Identity Services Programming Guide](https://developer.apple.com/library/archive/documentation/Networking/Conceptual/IdentityServices_ProgGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004490)



---

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)