Interface IPdmAdmin
Gives access to the PDM administration.
Namespace: TopSolid.Kernel.Automating
Assembly: cs.temp.dll.dll
Syntax
[AvailableSinceVersion(7, 6, 301, 160)]
public interface IPdmAdmin
Remarks
This interface is available since v7.6.301.160.
Properties
IsAdmin
Tells whether the connected TopSolid user has PDM administration rights.
Declaration
[AvailableSinceVersion(7, 6, 301, 160)]
bool IsAdmin { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
This property is available since v7.6.301.160.
UserAccountId
Gets connected user account identifier.
Declaration
[AvailableSinceVersion(7, 15, 186, 0)]
string UserAccountId { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This property is available since v7.15.186.000.
UserName
Gets connected user name.
Declaration
[AvailableSinceVersion(7, 15, 186, 0)]
string UserName { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This property is available since v7.15.186.000.
UserOldLogin
Gets connected user old login.
Declaration
[AvailableSinceVersion(7, 15, 186, 0)]
string UserOldLogin { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This property is available since v7.15.186.000.
Methods
ActivateUser(String)
Activates an inactive user.
Declaration
[AvailableSinceVersion(7, 6, 301, 160)]
void ActivateUser(string inAccountId)
Parameters
Type | Name | Description |
---|---|---|
System.String | inAccountId | User account identifier. |
Remarks
If the IsAdmin property returns false
, this method cannot be called (an exception will be thrown otherwise).
This method is available since v7.6.301.160.
ChangeUserPassword(String, String, String)
When current client is admin, changes user password.
Declaration
[AvailableSinceVersion(7, 16, 142, 0)]
void ChangeUserPassword(string inAccountId, string inOldPassword, string inNewPassword)
Parameters
Type | Name | Description |
---|---|---|
System.String | inAccountId | User account identifier. |
System.String | inOldPassword | Old password. |
System.String | inNewPassword | New password. |
CreateUser(String, String, String, String, String)
Creates a new user.
Declaration
[AvailableSinceVersion(7, 6, 301, 160)]
void CreateUser(string inFirstName, string inLastName, string inInitials, string inAccountIdentifier, string inPassword)
Parameters
Type | Name | Description |
---|---|---|
System.String | inFirstName | User first name. |
System.String | inLastName | User last name. |
System.String | inInitials | User initials. |
System.String | inAccountIdentifier | User account identifier. |
System.String | inPassword | User password. |
Remarks
If the IsAdmin property returns false
, this method cannot be called (an exception will be thrown otherwise).
This method is available since v7.6.301.160.
DeactivateUser(String)
Deactivate an active user.
Declaration
[AvailableSinceVersion(7, 6, 301, 160)]
void DeactivateUser(string inAccountId)
Parameters
Type | Name | Description |
---|---|---|
System.String | inAccountId | User account identifier. |
Remarks
If the IsAdmin property returns false
, this method cannot be called (an exception will be thrown otherwise).
This method is available since v7.6.301.160.
GetUserEmailAddress(String)
Gets the e-mail address of a user.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
string GetUserEmailAddress(string inAccountId)
Parameters
Type | Name | Description |
---|---|---|
System.String | inAccountId | User account identifier. |
Returns
Type | Description |
---|---|
System.String | User e-mail address. |
Remarks
This method is available since v7.7.
GetUserGroupName(PdmObjectId, out String, out String)
Gets the name of a user group.
Declaration
[AvailableSinceVersion(7, 8, 302, 60)]
void GetUserGroupName(PdmObjectId inUserGroupId, out string outName, out string outDescription)
Parameters
Type | Name | Description |
---|---|---|
PdmObjectId | inUserGroupId | User Group identifier. |
System.String | outName | User group name. |
System.String | outDescription | User group description. |
Remarks
This method is available since v7.8.302.060.
GetUserGroups(Boolean, Boolean)
Gets all the users groups.
Declaration
[AvailableSinceVersion(7, 8, 302, 60)]
List<PdmObjectId> GetUserGroups(bool inGetsActiveUserGroups, bool inGetsInactiveUserGroups)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | inGetsActiveUserGroups | Gets active user groups. |
System.Boolean | inGetsInactiveUserGroups | Gets inactive user groups. |
Returns
Type | Description |
---|---|
List<PdmObjectId> | User group identifiers. |
Remarks
This method is available since v7.8.302.060.
GetUserGroupUserAccountIds(PdmObjectId)
Gets the users account identifiers of a user group.
Declaration
[AvailableSinceVersion(7, 8, 302, 60)]
List<string> GetUserGroupUserAccountIds(PdmObjectId inUserGroupId)
Parameters
Type | Name | Description |
---|---|---|
PdmObjectId | inUserGroupId | User group identifiers. |
Returns
Type | Description |
---|---|
List<System.String> | Users account identifiers. |
Remarks
This method is available since v7.8.302.060.
GetUserName(String, out String, out String, out String)
Gets the name of a user.
Declaration
[AvailableSinceVersion(7, 6, 301, 160)]
void GetUserName(string inAccountId, out string outFirstName, out string outLastName, out string outInitials)
Parameters
Type | Name | Description |
---|---|---|
System.String | inAccountId | User account identifier. |
System.String | outFirstName | User first name. |
System.String | outLastName | User last name. |
System.String | outInitials | User initials. |
Remarks
This method is available since v7.6.301.160.
GetUsers(Boolean, Boolean)
Gets all the users.
Declaration
[AvailableSinceVersion(7, 6, 301, 160)]
List<string> GetUsers(bool inGetsActiveUsers, bool inGetsInactiveUsers)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | inGetsActiveUsers | Gets active users. |
System.Boolean | inGetsInactiveUsers | Gets inactive users. |
Returns
Type | Description |
---|---|
List<System.String> | Users account identifiers. |
Remarks
This method is available since v7.6.301.160.
IsUserActive(String)
Tells whether a user is active.
Declaration
[AvailableSinceVersion(7, 6, 301, 160)]
bool IsUserActive(string inAccountId)
Parameters
Type | Name | Description |
---|---|---|
System.String | inAccountId | User account identifier. |
Returns
Type | Description |
---|---|
System.Boolean | The user is active. |
Remarks
This method is available since v7.6.301.160.
SetUserEmailAddress(String, String)
Sets the e-mail address of a user.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
void SetUserEmailAddress(string inAccountId, string inEmailAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | inAccountId | User account identifier. |
System.String | inEmailAddress | User e-mail address. |
Remarks
If the IsAdmin property returns false
, this method cannot be called (an exception will be thrown otherwise).
This method is available since v7.7.
SetUserName(String, String, String, String)
Sets the name of a user.
Declaration
[AvailableSinceVersion(7, 6, 301, 160)]
void SetUserName(string inAccountId, string inFirstName, string inLastName, string inInitials)
Parameters
Type | Name | Description |
---|---|---|
System.String | inAccountId | User account identifier. |
System.String | inFirstName | User first name. |
System.String | inLastName | User last name. |
System.String | inInitials | User initials. |
Remarks
If the IsAdmin property returns false
, this method cannot be called (an exception will be thrown otherwise).
This method is available since v7.6.301.160.