StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Role Based Security
»
How To programmically add/edit a user f
How To programmically add/edit a user f
Post Reply
Like
1
How To programmically add/edit a user f
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Greg McGuffey
Greg McGuffey
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Excellent! Sorry I missed that, but I'm glad you getting competent at using source to figure out things like this. It can seem a bit daunting at first, but it's really nice to be able to figure this sort of stuff out quickly yourself!
Reply
Like
1
Jeff Pagley
Jeff Pagley
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 223,
Visits: 893
It failed again. So I debugged the SF assembly and found out I needed to set the us_ConfirmPassword property as well. It works fine now.
Thanks, Jeff
Reply
Like
1
Greg McGuffey
Greg McGuffey
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Jeff,
Very close. Set the us_PassWordPlaintext property instead of the us_data property. The data property is loaded with a bunch of other properties that are encrypted and stored as a single field in the database. The plain text password never leaves the machine. It is encrypted and placed in the data field and the data field is sent over the wire and saved.
Reply
Like
1
Jeff Pagley
Jeff Pagley
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 223,
Visits: 893
Hi Greg,
The following code is failing to add a new user. What am I missing?
MicroFour.StrataFrame.Security.BusinessObjects.
SFSUsersBO
users =
new
MicroFour.StrataFrame.Security.BusinessObjects.
SFSUsersBO
();
users.Add();
users.us_FirstName =
"New"
;
users.us_LastName =
"User"
;
users.us_PasswordNeverExpires =
true
;
users.us_Username =
"NewUser"
;
users.us_Data =
"nu"
;
//password
if
(users.Save() != MicroFour.StrataFrame.Data.
SaveUndoResult
.Success)
{
MessageBox
.Show(
"Add user failed."
);
return
;
}
Reply
Like
1
Greg McGuffey
Greg McGuffey
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Use the RBS BOs. They are under the Security.BusinessObjects namespace.
Reply
Like
1
Jeff Pagley
Jeff Pagley
posted 14 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 223,
Visits: 893
Hi SF,
I have a need to add/edit users to RBS SFSUsers table without using the SF RBS interface. How do I do this?
Thanks,
Jeff
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search