GAM-team / GAM

command line management for Google Workspace
https://github.com/GAM-team/GAM/wiki
Apache License 2.0
3.54k stars 473 forks source link

Trying to add CustomAttribute vallue getting an error. #1695

Closed iabud-24 closed 1 month ago

iabud-24 commented 3 months ago

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

Full steps to reproduce the issue: I have created two Custom attributes 1>> Category: AzureAD, Name: ImmutableID , Info type: text, Visibility: Visible to user and admin No of Value: Single Value. I have used this cmdlet to add the value (gam update user user@domain.org AzureAD.ImmutableID ZNnP9o/CHUSCtrdse7fgCw==) this command works perfectly. 2>>a) Category: Enhanced desktop security, Name: Local windows accounts, Info type: text, Visibility: Visible to user and admin No of Value: Multi Value. b) Category: AD accounts, Name: Local windows accounts, Info type: text, Visibility: Visible to user and admin No of Value: Multi Value.

for this I have tried below formats gam update user user@domain.org "Enhanced desktop security.AD accounts" Domain.org\UPN gam update user user@domain.org "Enhanced_desktop_security.AD_accounts" Domain.org\UPN

Error: ERROR: 400: Invalid Input: custom_schema - invalid

So I hope there is something missing, would it be possible to get the right cmdlet.

taers232c commented 3 months ago

Do: gam show schemas

I believe that you want the following but seeing the schemas will help.

*gam update user @. @.> "Enhanced_desktop_security.Local_windows_accounts" Domain.org\UPN *gam update user @. @.> "AD_accounts:Local_windows_accounts" Domain.org\UPN

Ross


Ross Scroggs @.***

On Aug 8, 2024, at 9:30 AM, iabud-24 @.***> wrote:

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

I have upgraded to the latest GAM release from https://github.com/GAM-team/GAM/releases and I still have this issue. I am typing the command as described in the GAM Wiki at https://github.com/GAM-team/GAM/wiki Full steps to reproduce the issue: I have created two Custom attributes 1>> Category: AzureAD, Name: ImmutableID , Info type: text, Visibility: Visible to user and admin No of Value: Single Value. I have used this cmdlet to add the value (gam update user @. @.> AzureAD.ImmutableID ZNnP9o/CHUSCtrdse7fgCw==) this command works perfectly. 2>>a) Category: Enhanced desktop security, Name: Local windows accounts, Info type: text, Visibility: Visible to user and admin No of Value: Multi Value. b) Category: AD accounts, Name: Local windows accounts, Info type: text, Visibility: Visible to user and admin No of Value: Multi Value.

for this I have tried below formats *gam update user @. @.> "Enhanced desktop security.AD accounts" Domain.org\UPN *gam update user @. @.> "Enhanced_desktop_security.AD_accounts" Domain.org\UPN

Error: ERROR: 400: Invalid Input: custom_schema - invalid

So I hope there is something missing, would it be possible to get the right cmdlet.

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1695, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL4US2RL5MEOD3TFTGLZQOMK5AVCNFSM6AAAAABMG2467KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TMMRQGM4TKMI. You are receiving this because you are subscribed to this thread.

iabud-24 commented 3 months ago

Hello,

see below schema's

C:\Windows\system32>gam show schemas Schema: AzureAD schemaId: 3y8R8zOfQG-UtXsoeMbUyQ== displayName: AzureAD Field: ImmutableID fieldId: KJupEVoAR8y1YhJ5W4POxw== fieldType: STRING displayName: ImmutableID multiValued: False readAccessType: ADMINS_AND_SELF Schema: Enhanced_desktop_security schemaId: Md6sNo8VQCSSoYWaXx2WPA== displayName: Enhanced desktop security Field: Local_windows_accounts fieldId: sg86RjVXQwC-GBVEi-hMkw== fieldType: STRING displayName: Local windows accounts multiValued: True readAccessType: ADMINS_AND_SELF Field: ADaccounts fieldId: vq3irX-nT7nQWsZ8WPtRyg== fieldType: STRING displayName: AD accounts multiValued: True readAccessType: ADMINS_AND_SELF

On Thu, Aug 8, 2024 at 8:42 PM Ross Scroggs @.***> wrote:

Do: gam show schemas

I believe that you want the following but seeing the schemas will help.

*gam update user @. @.> "Enhanced_desktop_security.Local_windows_accounts" Domain.org\UPN *gam update user @. @.> "AD_accounts:Local_windows_accounts" Domain.org\UPN

Ross


Ross Scroggs @.***

On Aug 8, 2024, at 9:30 AM, iabud-24 @.***> wrote:

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

I have upgraded to the latest GAM release from https://github.com/GAM-team/GAM/releases and I still have this issue. I am typing the command as described in the GAM Wiki at https://github.com/GAM-team/GAM/wiki Full steps to reproduce the issue: I have created two Custom attributes 1>> Category: AzureAD, Name: ImmutableID , Info type: text, Visibility: Visible to user and admin No of Value: Single Value. I have used this cmdlet to add the value (gam update user @. @.> AzureAD.ImmutableID ZNnP9o/CHUSCtrdse7fgCw==) this command works perfectly. 2>>a) Category: Enhanced desktop security, Name: Local windows accounts, Info type: text, Visibility: Visible to user and admin No of Value: Multi Value. b) Category: AD accounts, Name: Local windows accounts, Info type: text, Visibility: Visible to user and admin No of Value: Multi Value.

for this I have tried below formats *gam update user @. @.> "Enhanced desktop security.AD accounts" Domain.org\UPN *gam update user @. @.> "Enhanced_desktop_security.AD_accounts" Domain.org\UPN

Error: ERROR: 400: Invalid Input: custom_schema - invalid

So I hope there is something missing, would it be possible to get the right cmdlet.

— Reply to this email directly, view it on GitHub < https://github.com/GAM-team/GAM/issues/1695>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACCTYL4US2RL5MEOD3TFTGLZQOMK5AVCNFSM6AAAAABMG2467KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TMMRQGM4TKMI>.

You are receiving this because you are subscribed to this thread.

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1695#issuecomment-2276244508, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKM6ZVU3XMO5SMMHEN6H3R3ZQONXRAVCNFSM6AAAAABMG2467KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZWGI2DINJQHA . You are receiving this because you authored the thread.Message ID: @.***>

taers232c commented 3 months ago
::= . ::= ... [multivalued [type home|other|work|(custom )]] The last two custom schema fields are multivalued so you have to add an additional keyword update AzureAD.ImmutableID xxx update Enhanced_desktop_security.Local_windows_accounts multivalued xxx update Enhanced_desktop_security.ADaccounts multivalued xxx update Enhanced_desktop_security.Local_windows_accounts multivalued type work xxx update Enhanced_desktop_security.ADaccounts multivalued type work xxx Ross ---- Ross Scroggs ***@***.*** > On Aug 9, 2024, at 4:16 AM, iabud-24 ***@***.***> wrote: > > > Hello, > > see below schema's > > C:\Windows\system32>gam show schemas > Schema: AzureAD > schemaId: 3y8R8zOfQG-UtXsoeMbUyQ== > displayName: AzureAD > Field: ImmutableID > fieldId: KJupEVoAR8y1YhJ5W4POxw== > fieldType: STRING > displayName: ImmutableID > multiValued: False > readAccessType: ADMINS_AND_SELF > Schema: Enhanced_desktop_security > schemaId: Md6sNo8VQCSSoYWaXx2WPA== > displayName: Enhanced desktop security > Field: Local_windows_accounts > fieldId: sg86RjVXQwC-GBVEi-hMkw== > fieldType: STRING > displayName: Local windows accounts > multiValued: True > readAccessType: ADMINS_AND_SELF > Field: ADaccounts > fieldId: vq3irX-nT7nQWsZ8WPtRyg== > fieldType: STRING > displayName: AD accounts > multiValued: True > readAccessType: ADMINS_AND_SELF > > On Thu, Aug 8, 2024 at 8:42 PM Ross Scroggs ***@***.***> > wrote: > > > Do: gam show schemas > > > > I believe that you want the following but seeing the schemas will help. > > > *gam update user ***@***.*** ***@***.***> > > "Enhanced_desktop_security.Local_windows_accounts" Domain.org\UPN > > > *gam update user ***@***.*** ***@***.***> > > "AD_accounts:Local_windows_accounts" Domain.org\UPN > > > > > Ross > > > > ---- > > Ross Scroggs > > ***@***.*** > > > > > > > > > On Aug 8, 2024, at 9:30 AM, iabud-24 ***@***.***> wrote: > > > > > > > > > The issue tracker is for reporting product deficiencies. "How do I?" > > questions should be posted to the discussion forum at > > https://groups.google.com/group/google-apps-manager. When in doubt, start > > at the discussion forum and return here only when instructed to do so. > > > > > > Please confirm the following: > > > > > > I have upgraded to the latest GAM release from > > https://github.com/GAM-team/GAM/releases and I still have this issue. > > > I am typing the command as described in the GAM Wiki at > > https://github.com/GAM-team/GAM/wiki > > > Full steps to reproduce the issue: > > > I have created two Custom attributes > > > 1>> Category: AzureAD, Name: ImmutableID , Info type: text, Visibility: > > Visible to user and admin No of Value: Single Value. > > > I have used this cmdlet to add the value (gam update user ***@***.*** > > ***@***.***> AzureAD.ImmutableID ZNnP9o/CHUSCtrdse7fgCw==) this command > > works perfectly. > > > 2>>a) Category: Enhanced desktop security, Name: Local windows accounts, > > Info type: text, Visibility: Visible to user and admin No of Value: Multi > > Value. > > > b) Category: AD accounts, Name: Local windows accounts, Info type: text, > > Visibility: Visible to user and admin No of Value: Multi Value. > > > > > > for this I have tried below formats > > > *gam update user ***@***.*** ***@***.***> "Enhanced desktop security.AD > > accounts" Domain.org\UPN > > > *gam update user ***@***.*** ***@***.***> > > "Enhanced_desktop_security.AD_accounts" Domain.org\UPN > > > > > > Error: ERROR: 400: Invalid Input: custom_schema - invalid > > > > > > So I hope there is something missing, would it be possible to get the > > right cmdlet. > > > > > > — > > > Reply to this email directly, view it on GitHub < > > https://github.com/GAM-team/GAM/issues/1695>, or unsubscribe < > > https://github.com/notifications/unsubscribe-auth/ACCTYL4US2RL5MEOD3TFTGLZQOMK5AVCNFSM6AAAAABMG2467KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TMMRQGM4TKMI>. > > > > > You are receiving this because you are subscribed to this thread. > > > > > > > — > > Reply to this email directly, view it on GitHub > > , or > > unsubscribe > > > > . > > You are receiving this because you authored the thread.Message ID: > > ***@***.***> > > > — > Reply to this email directly, view it on GitHub , or unsubscribe . > You are receiving this because you commented. >