Notion users not detecting guests, unable to add guests to Person Property Types

Hi everyone!

I’m having this issue when I’m trying to add Guests to Person property types in database pages.

When I specify a guest person ID, I am able to retrieve the person with the User, Get User operation.
I’m also able to get guest person IDs when they are pre-populated in the Notion database I’m getting from.

However, when I’m trying to create or update a database page, the person property is only accepting Users and Integrations as person IDs. Applying the User, Get All operation also omits guests with access to the same databases. Has anyone found any workarounds or fixes for this?

Thanks,
Zekiel

Hey @honkezekiel!

Welcome to the community :sparkling_heart:

Are you trying to add a guest who is not in the workspace? I was able to add a guest (with whom I’ve shared the workspace) to a Database Page. Can you please share what error you get? If you can also share the workflow (as well as the notion template) it would help me recreate the issue.

Hi Harshil,

The guests are already added to the workspace.

Notion, Get All Database Pages - I’m able to detect guest IDs under the XCRM Team Person property
Node, Update Database Pages - tried feeding in the same guest IDs for Person properties but it’s not working, allowing only Members and Integrations.

Notion Template: Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.

Guest IDs: 5377c9ce-b040-4afa-9a5a-f5053ac2d3a7,d45224ac-2d62-4fa2-9feb-9d6b13c48262,1bae0ec6-5452-4716-9283-9d4a64669997,f356a346-d88a-4384-b6e8-8c789f01d157

TypeError: value.peopleValue.map is not a function
    at getPropertyKeyValue (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Notion/GenericFunctions.js:218:43)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Notion/GenericFunctions.js:256:41
    at Array.reduce (<anonymous>)
    at Object.mapProperties (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Notion/GenericFunctions.js:255:23)
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Notion/Notion.node.js:336:62)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/Workflow.js:492:37)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:424:62

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        400
      ]
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": "b6d0c81a-fb4f-46e3-a645-24e219596993",
        "returnAll": true,
        "simple": false,
        "options": {}
      },
      "name": "Notion",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 1,
      "position": [
        450,
        400
      ],
      "credentials": {
        "notionApi": "Notion API Credentials"
      }
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "update",
        "pageId": "={{$json[\"id\"]}}",
        "simple": false,
        "propertiesUi": {
          "propertyValues": [
            {
              "key": "Admin|people",
              "multiSelectValue": [],
              "relationValue": []
            }
          ]
        }
      },
      "name": "Notion1",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 1,
      "position": [
        650,
        400
      ],
      "notesInFlow": false,
      "credentials": {
        "notionApi": "Notion API Credentials"
      },
      "notes": "Ensure user value is as follows:\n\n5377c9ce-b040-4afa-9a5a-f5053ac2d3a7,d45224ac-2d62-4fa2-9feb-9d6b13c48262,1bae0ec6-5452-4716-9283-9d4a64669997,f356a346-d88a-4384-b6e8-8c789f01d157"
    },
    {
      "parameters": {
        "resource": "user",
        "userId": "1bae0ec6-5452-4716-9283-9d4a64669997"
      },
      "name": "Notion2",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 1,
      "position": [
        646,
        181.00048828125
      ],
      "credentials": {
        "notionApi": "Notion API Credentials"
      }
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion": {
      "main": [
        [
          {
            "node": "Notion1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Hey @honkezekiel!

Unfortunately, I was not able to reproduce this issue. It still works for me. I am not why it is not working for you. Can you try creating a new workflow from scratch?
You can also use the Split In Batches node and the IF node to form a loop that will query for a single user, check what data the node returns, and based on that proceed forward. Let me know if you need any help :slight_smile: