---
title: "recordDetails(forAttributes:)"
framework: opendirectory
role: symbol
role_heading: Instance Method
path: "opendirectory/odrecord/recorddetails(forattributes:)"
---

# recordDetails(forAttributes:)

Returns a dictionary of attributes with their respective values.

## Declaration

```swift
func recordDetails(forAttributes inAttributes: [Any]!) throws -> [AnyHashable : Any]
```

## Parameters

- `inAttributes`: An array of attributes. Can be nil.

## Return Value

Return Value A dictionary of the attributes in inAttributes with their respective values.

## Discussion

Discussion If inAttributes is nil, all currently retrieved attributes are returned. note: In Swift, this method returns a nonoptional result and is marked with the throws keyword to indicate that it throws an error in cases of failure. You call this method in a try expression and handle any errors in the catch clauses of a do statement, as described in Error Handling in The Swift Programming Language and About Imported Cocoa Error Parameters.

## See Also

### Managing Record Attributes

- [addValue(_:toAttribute:)](opendirectory/odrecord/addvalue(_:toattribute:).md)
- [recordName](opendirectory/odrecord/recordname.md)
- [recordType](opendirectory/odrecord/recordtype.md)
- [removeValues(forAttribute:)](opendirectory/odrecord/removevalues(forattribute:).md)
- [removeValue(_:fromAttribute:)](opendirectory/odrecord/removevalue(_:fromattribute:).md)
- [setValue(_:forAttribute:)](opendirectory/odrecord/setvalue(_:forattribute:).md)
- [synchronize()](opendirectory/odrecord/synchronize().md)
- [values(forAttribute:)](opendirectory/odrecord/values(forattribute:).md)
