Addressbook.people
------------------

Returns an array of all the people in the Address Book database.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Addressbook](component_Addressbook.md) | [3.1](newinversion31.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

### Deprecated

This function was [deprecated](deprecated.md). Use [Contacts](component_Contacts.md) functions instead.

MBS( "Addressbook.people" { ; Account } ) 

**MBS**( **"Addressbook.people";** /\* Returns an array of all the people in the Address Book database. \*/  
**$Account**) /\* Optional; The account identifier to limit search for.e.g. \_local \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Account | The account identifier to limit search for. | \_local | Optional |

### Result

Returns list of all person IDs.

### Description

Returns an array of all the people in the Address Book database.  
If the database doesn't contain any people, this method returns an empty array.  
### Examples

Get list of people IDs and show name of first person:

 Set Variable \[$people ; Value:MBS ( "Addressbook.people" )\]  
Set Variable \[$firstPerson ; Value:GetValue($people ; 1)\]  
Show Custom Dialog \["Name of first person"; MBS ( "[Addressbook.record.displayname](Addressbookrecorddisplayname.md)"; $firstPerson )\]  
### See also

- [Addressbook.groups](Addressbookgroups.md)
- [Addressbook.record.displayname](Addressbookrecorddisplayname.md)
- [Addressbook.setMe](AddressbooksetMe.md)
- [CNContactStore.Contacts](CNContactStoreContacts.md)

### Example Databases

- [Mac and iOS/Addressbook/Addressbook](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Addressbook/Addressbook.shtml#4ScriptAnchor_)

### Blog Entries

- [Filemaker and the Mac OS X Addressbook](https://www.mbsplugins.de/archive/2013-05-04/Filemaker_and_the_Mac_OS_X_Add/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 17th March 2016

  
[Addressbook.multivalue.values](Addressbookmultivaluevalues.md) - [Addressbook.persistentAccounts](AddressbookpersistentAccounts.md)

[HTML Version](Addressbookpeople.shtml)