docs: correct the account provisioning setup instructions - #17
Conversation
The authentication domain ID section sent readers to a create-account form that does not exist. Point it at the app's provisioning mappings instead, document the four mappings the connector requires, and note that user_type and authentication_domain_id are per-app constants entered as quoted CEL string literals. Also refresh the README: the Data Model section listed only the synced resources and never mentioned the write capabilities or the update_user action, and the embedded --help output was several SDK versions behind. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
|
||
| | Destination value | Source value | | ||
| | :--- | :--- | | ||
| | `name` | A CEL expression resolving to the user's full name, such as `subject.display_name` | |
There was a problem hiding this comment.
🟡 Suggestion: "requires four mappings" overstates two of them. In pkg/connector/users.go:181-202, only user_type and authentication_domain_id are hard requirements — email falls back to accountInfo.GetLogin() and name falls back to the email. Consider "requires these four mappings" → something like "uses four mappings; user_type and authentication_domain_id are required" so a reader debugging a create account requires user_type error knows which two actually gate creation.
Connector PR Review: docs: correct the account provisioning setup instructionsBlocking Issues: 0 | Suggestions: 1 | Threads Resolved: 0 Review Summary Scanned the full PR diff for security and correctness: it touches only Security Issues None found. Correctness Issues None found. Suggestions
Prompt for AI agents |
Summary
The connector page told readers to put their New Relic authentication domain ID into "C1's create-account form". That form does not exist — the app's Accounts tab offers only Import from file. A reader who followed the page reached the end of the walkthrough holding a domain ID with nowhere to put it.
This replaces that section with the real path: C1 creates the account when a user requests access to the app, and the account details come from the app's provisioning mappings. The C1-side procedure already lives in Configure account provisioning, so the page links there rather than restating it, and adds only what is specific to this connector.
What changed
docs/connector.mdxpkg/connector/users.go:194-201, which requiresuser_typeandauthentication_domain_idand errors without them.user_typeandauthentication_domain_idare entered as quoted CEL string literals, and they are fixed values rather than expressions, so one app provisions into exactly one tier and one authentication domain. Neither fact was on the page, and both cost time during validation.CAPABILITY_ACCOUNT_PROVISIONINGandCAPABILITY_RESOURCE_DELETE, so the full variant applies.descriptionandog:descriptionstill match.README.mdbaton_capabilities.jsonalso declaresCAPABILITY_ACCOUNT_PROVISIONING,CAPABILITY_RESOURCE_DELETE,CAPABILITY_PROVISIONongroupandrole, andCAPABILITY_ACTIONS. Added the write capabilities and theupdate_useraction.--helpblock listed 8 flags and 3 commands. The current binary reports 28 flags and 5 commands. Replaced with the real output.Deliberately not changed
baton_capabilities.jsondeclaresCAPABILITY_PROVISIONonrolewhile the table shows Sync only. Role provisioning is not reachable from any C1 surface today and its dispatch rejects role scopes outsideorganization/account/group, so adding the checkmark would document a path a reader cannot take. Tracked separately.docs/docs-info.md. This repo does not have one. It is an input written by the connector author, not something a docs correction should invent.Verified correct while auditing — please do not "fix" these
update_userappears; the Account lifecycle action step offers zero options for this app.update_user'suser_idis described as a resource reference. It is — passing a raw New Relic user ID fails withresource <id> with type user was not found.Verified against the running connector on a sandbox tenant on 2026-08-26.