Testing around with provider to user mapping -- this is probably all junk code.