Parameters for remove_users from group?

101
1
Jump to solution
06-23-2020 11:40 AM
RyanDavis1
New Contributor III

Hi -

Pretty simple question.  What are the parameter types for the remove_users method from a group?

The documentation says the parameter usernames is a "Required string. A comma-separated list of users to be removed."  So is usernames a string or a list of strings?

 

The method also returns a "dictionary with a key notRemoved that is a list of users not removed."  However, it seems to be returning a dictionary whose value for the notRemoved key seems to be a list of my string characters:  {'notRemoved': ['e', 'k', 'v', '5', '_', 'c', 'd']}.

Can someone tell me what I'm doing wrong?

Thanks,

Ryan

0 Kudos
1 Solution

Accepted Solutions
RyanDavis1
New Contributor III

Figured it out... I had to add my string to a single element list first.  I still think the documentation is confusing.

View solution in original post

0 Kudos
1 Reply
RyanDavis1
New Contributor III

Figured it out... I had to add my string to a single element list first.  I still think the documentation is confusing.

View solution in original post

0 Kudos