Jump to content

Relationship based on Get(Accountname)


This topic is 5876 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Is using Get(AccountName) an advisable key field? I have indexing checked on "All" in both tables. Lookups then function and are a useful part of the solution.

Should I anticipate that users will need to change their account name in the future?

Also, my users login to create content. The content that they create is modifiable by them, and readable by others per calculation in Manage Accounts and Privileges (Get(AccountName) = Get(AccountName)).

So, there are two reasons why the account name should never change.

Is this a poor approach?

Thanks,

Jason

Link to comment
Share on other sites

I think in a commercial environment an Account name is not important to a user. It's just a method of ID-ing somebody, it's not MSN or Yahoo where people pick a nice name.

You as admin are the boss here, so unless the Account name of a divorced female employee still includes her ex-husband's name, I don't think Account names have to change...

Good luck!

Link to comment
Share on other sites

Basically, it is [color:red]not a good idea to use the Account Name or any other "meaningful" value as the key. A primary key, and that's where you're starting here, should be unique, persistent, existent, non-modifiable, and meaningless.

Should there be some future change in the construct of your OS or of your authentication processes, all Accounts could change. You'll have enough of a challenge with the Record Level Access items in such an instance, much less the relationships.

Finally, for RLA tests I would recommend not using the = operator. Use a text comaprison operator such as the Exact function.

Steven

Link to comment
Share on other sites

This topic is 5876 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.