Retrieving Members
Retrieve all of a table's Members or the current member.
Get Current Member
Gets the current member who is viewing the script.
get_current_member(): Promise<SimpleRecordList>;
Parameter Name | Type | Description |
---|---|---|
filter | string | (optional) Group filter |
fieldSlugs | array of strings | (optional) Array of field slugs to return. |
List Members
<!--get_current_member(): Promise<SimpleRecordList>;-->
<script>
window.SmartSuite.get_current_member().then((res) => {
console.log('member res =>>>', res);
});
</script>
List Members
Get all Members in a workspace.
list_members(filter?: GroupFilter, fieldSlugs?: string[]): Promise<SimpleRecordList>;
Parameter Name | Type | Description |
---|---|---|
filter | string | (optional) Group filter |
fieldSlugs | array of strings | (optional) Array of field slugs to return. |
GroupFilter
interface GroupFilter {
operator: FilterOperator;
fields: FilterField[];
}
type FilterOperator = "and" | "or";
List Members
<!--list_members(filter?: GroupFilter, fieldSlugs?: string[]): Promise<SimpleRecordList>;-->
<script>
window.SmartSuite.list_members().then((res) => {
console.log('result members =>>>', res);
});
</script>
Response
200 Response
{
"response": {
"items": [
{
"application_id": "5fa0103f8febf5497e38c201",
"autonumber": 9,
"availability_status": {
"emoji": "",
"status": "",
"selected_interval": ""
},
"first_created": {
"by": "5fa010408febf5497e38c211",
"on": "2020-11-02T14:55:41.858000Z"
},
"last_updated": {
"by": "5fa01dedaa4e41222745cbab",
"on": "2023-04-21T20:57:26.208000Z"
},
"id": "5fa01dedaa4e41222745cbab",
"application_slug": "members",
"deleted_date": {
"date": null
},
"full_name": {
"title": "",
"first_name": "Peter",
"middle_name": "",
"last_name": "Novosel",
"sys_root": "Peter Novosel"
},
"company_name": "SmartSuite",
"department": "Executive Team",
"about_me": "Peter is a Co-Founder and CTO of SmartSuite, overseeing product research, design and development efforts focused on delivering a single platform to manage all your work. With over 25 years of B2B and Enterprise software experience Peter brings to the team a passion for innovation and delivering amazing user experiences to customers of all sizes.",
"job_title": "Co-Founder / CTO",
"email": [
"peter@smartsuite.com"
],
"status": {
"value": "1",
"updated_on": "2020-11-02T22:34:56.626000Z"
},
"type": "1",
"role": "1",
"timezone": "America/Los_Angeles",
"office_location": {
"location_address": "15549 West 166th Street",
"location_address2": "",
"location_city": "Olathe",
"location_state": "Kansas",
"location_zip": "66062",
"location_country": "United States",
"location_longitude": "-94.80385869999999",
"location_latitude": "38.826903",
"sys_root": "15549 West 166th Street, Olathe, Kansas, 66062, United States"
},
"work_anniversary": {
"date": "2019-03-04T00:00:00Z",
"include_time": false
},
"certifications": [
"63f7aac252f25ca47cb95faa"
],
"skills": [
"63f7aac252f25ca47cb95fab",
"63f7aac252f25ca47cb95fac",
"63f7aac252f25ca47cb95fad",
"63f7aac352f25ca47cb95fae"
],
"hobbies": [
"5fe1d46ada1e62463e0807bc",
"5fd27830f18f42a73c0b3263"
],
"linkedin": [
"https://linkedin.com/in/peternovosel"
],
"twitter": [
"https://twitter.com/peternovosel"
],
"facebook": [
"https://www.facebook.com/pnovosel"
],
"instagram": [
""
],
"theme": "smartsuite_primary",
"dob": {
"date": "1970-11-01T00:00:00Z",
"include_time": false
},
"profile_image": [
{
"handle": "AMhkSKBSyiIBIj8ei0ll",
"metadata": {
"container": "smart-suite-media",
"filename": "1114_Peter-Novosel_106 (2).jpg",
"key": "Wju9hFnmRLeo99wCSS0n_1114_Peter-Novosel_106 (2).jpg",
"mimetype": "image/jpeg",
"size": 1171191
},
"transform_options": {
"crop": {
"dim": [
319,
288,
2302,
2302
]
}
},
"file_type": "image",
"created_on": "2023-04-01T21:26:14.560000Z",
"updated_on": "2023-04-01T21:26:14.560000Z"
}
],
"cover_image": [],
"biography": [],
"phone": [
{
"phone_country": "US",
"phone_number": "+1 913 553 7700",
"phone_extension": "",
"phone_type": 2,
"sys_root": "19135537700",
"sys_title": "+1 913 553 7700"
}
],
"teams": [
"5fa010408febf5497e38c214",
"5fcfc5012a42a9390f881302",
"624410e6ba53bfa279dfbe40",
"6442f8b51a1d1a7181d48965"
],
"ip_address": [
{
"address": "15.158.11.55",
"country_code": "us"
}
],
"last_login": {
"date": "2023-04-25T13:03:24.864000Z",
"include_time": true
},
"cover_template": "245",
"locale": "en-US",
"language": "en",
"followed_by": [],
"manager_id": "",
"external_id": "",
"provisioning": ""
}
],
"total": 1,
"limit": 0,
"offset": 0,
"time": ""
}
}