On 1/15/22 10:03 AM, Stephen Daniel wrote:
The only way I've found to create a standalone address (not linked to any user) is to create a user with that address, unlink the address, then delete the user.
Is there a more straightforward way to just create an address with no user?
The more straightforward way is via the IUserManager create_address method. This method is not exposed directly in REST, so you can't do it via REST.
My question is why do you want to?
Granted when an unknown nonmember address posts to a list we create a standalone address record, but maybe we should be creating a user too. We don't because it's tricky. Suppose User A with address A posts to a list from nonmember address B. We create the standalone address B record as a nonmember, but now user A can add address B as another address. If we also created User B, this would not be possible.
But again, what is your use case for creating standalone addresses?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan