@@ -55,16 +55,23 @@ func (r *OrganizationUser) Schema(ctx context.Context, req resource.SchemaReques
5555 Computed : true ,
5656 MarkdownDescription : "ID of the invited user" ,
5757 PlanModifiers : []planmodifier.String {
58- stringplanmodifier .RequiresReplace (),
58+ stringplanmodifier .UseStateForUnknown (),
5959 },
6060 },
6161 "organization_id" : schema.StringAttribute {
6262 MarkdownDescription : "ID of the organization to invite the user to" ,
6363 Required : true ,
64+ PlanModifiers : []planmodifier.String {
65+ stringplanmodifier .UseStateForUnknown (),
66+ stringplanmodifier .RequiresReplace (),
67+ },
6468 },
6569 "email" : schema.StringAttribute {
6670 MarkdownDescription : "The email of the user to invite" ,
6771 Required : true ,
72+ PlanModifiers : []planmodifier.String {
73+ stringplanmodifier .UseStateForUnknown (),
74+ },
6875 },
6976 "type" : schema.StringAttribute {
7077 MarkdownDescription : "The role type of the user (Owner, Admin, User, Manager). Defaults to `User`" ,
@@ -87,6 +94,9 @@ func (r *OrganizationUser) Schema(ctx context.Context, req resource.SchemaReques
8794 Validators : []validator.String {
8895 stringvalidator .OneOf ("Revoked" , "Invited" , "Accepted" , "Confirmed" ),
8996 },
97+ PlanModifiers : []planmodifier.String {
98+ stringplanmodifier .UseStateForUnknown (),
99+ },
90100 },
91101 },
92102 }
0 commit comments