Sarvesh Bhogale
Sarvesh Bhogale

Reputation: 13

Adding new Sas users to existing Groups in Sas metadata

I am trying a similar approach to add new sas users to sas metadata and assigning them the existing groups in sas metadata. Do you have to pass the object reference values in %mm_adduser2group(user="",group="") macro provided in the GitHub link. Passing the object values would be but of a strech considering we would have to fetch the values from sas application. Instead could passing the normal values work for the macro Eg -(user="xyz",group=sasstudio""). We were facing issues while assigning new users to existing group using this macro. Any suggestions on how can I resolve this issue

Reference question :- adding a meta user to a meta group in sas

GitHub link for Macro - https://github.com/sasjs/core/blob/main/meta/mm_adduser2group.sas

Upvotes: 1

Views: 738

Answers (1)

Allan Bowe
Allan Bowe

Reputation: 12691

The values to the macro should be passed unquoted, eg:

    %mm_adduser2group(user=xyz,group=sasstudio)

You say:

We were facing issues while assigning new users to existing group using this macro. Any suggestions on how can I resolve this issue

However you don't actually say what the issue was. Does it work when you add users to groups manually using SAS Management Console? Perhaps the users are already in those groups, or have an inherited membership to those groups?

Upvotes: 0

Related Questions