Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Enable a specific user using DXL
Topic Summary: HOW TO...?
Created On: 13-May-2008 18:25
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by David Pechacek, on Tuesday, May 13, 2008 7:42 PM

Answer:
Try setUser(User user, property, {string|int|bool} value).

I assume property is a string variable since they do not specify. Probably just a typo. You probably should do a saveDirectory() afterwards to be sure the change takes effect.

User yourUserHandle = find(a username)
bool isDisabled = true or false
string disableProperty = "disable"

setUser(yourUserHandle, disableProperty, isDisabled).
 13-May-2008 18:25
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

I created a program to change the users password, it working perfectly.
I received an email from x user to reset the password and enabled the account. I'm ok with changing the password but i can't enabled the users account.

What command i need to enable or disable users account.

The same as going to the Manage users and check off the Disable users checkbox.

Thanks.

if anyone know other way to change the password, easieast than the CHange pass dialog box, please let me know.

Thanks
Report this to a Moderator Report this to a Moderator
 13-May-2008 19:31
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Answer Answer
Try setUser(User user, property, {string|int|bool} value).

I assume property is a string variable since they do not specify. Probably just a typo. You probably should do a saveDirectory() afterwards to be sure the change takes effect.

User yourUserHandle = find(a username)
bool isDisabled = true or false
string disableProperty = "disable"

setUser(yourUserHandle, disableProperty, isDisabled).

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Edited: 13-May-2008 at 19:36 by David Pechacek
Report this to a Moderator Report this to a Moderator
 13-May-2008 21:32
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I don't think its a string variable, it appears to be of hidden type "AgentElement_". Use the names directly from the 'Group and user management" section's table. In this case:

setUser(yourUserHandle, disabled, false)

- Louie
Report this to a Moderator Report this to a Moderator
 14-May-2008 13:37
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Thanks Lou. Didn't know that.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.