Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModelRole.AddWindowsMember method fails when providing MemberID #483

Closed
alwortma opened this issue Mar 24, 2022 · 2 comments
Closed

ModelRole.AddWindowsMember method fails when providing MemberID #483

alwortma opened this issue Mar 24, 2022 · 2 comments
Labels
issue: bug Confirmed as a bug in TE3
Milestone

Comments

@alwortma
Copy link

TE3 v3.2.2

When running a C# script to add members to an existing role I get the following error:
Property 'MemberID' of object 'ModelRoleMember' is immutable and can't be changed once set.

I am following the syntax provided in TE2 Intellisense:
image

My code:

Model.Roles["Adminstrator"].AddWindowsMember("AMR\\sys_XXX","S-1-XXXXXXX-3684");

However, if I only specify MemberName, then save/deploy the model, it seems as though the role member is properly recognized. Is this the intended functionality? If only the MemberName is required/allowed, then maybe the Intellisense prompt should be changed?

@otykier
Copy link
Collaborator

otykier commented Mar 25, 2022

Yeah, this is a bug in the implementation of .AddWindowsMember. MemberId is indeed optional, but we will make sure that specifying it will also work.

@otykier otykier added the issue: bug Confirmed as a bug in TE3 label Mar 25, 2022
@otykier otykier added this to the 3.2.3 milestone Mar 25, 2022
@otykier
Copy link
Collaborator

otykier commented Apr 7, 2022

This is now fixed in 3.2.3, where MebmerId can now be specified as an optional second argument.

@otykier otykier closed this as completed Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Confirmed as a bug in TE3
Development

No branches or pull requests

2 participants