You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to query the Graph API to find all the users I invited that have their invitations pending.
MGC Version
% mgc --version
1.0.0-rc.1
MGC Console Output
% mgc invitations list
{"error":{"code":"UnknownError","message":"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"/>\r\n<title>404 - File or directory not found.</title>\r\n<style type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7em;margin:0;color:#CC0000;} \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:\"trebuchet MS\", Verdana, sans-serif;color:#FFF;\r\nbackground-color:#555555;}\r\n#content{margin:0 0 0 2%;position:relative;}\r\n.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div id=\"header\"><h1>Server Error</h1></div>\r\n<div id=\"content\">\r\n <div class=\"content-container\"><fieldset>\r\n <h2>404 - File or directory not found.</h2>\r\n <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>\r\n </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n","innerError":{"date":"2023-10-18T05:33:56","request-id":"12345678-xxxx-yyyy-zzzz-112233445566","client-request-id":"12345678-aaaa-bbbb-cccc-112233445566"}}}
The text was updated successfully, but these errors were encountered:
Hello @napramirez, thank you for raising this issue. It seems like this API doesn't exist and should be removed from the CLI. To tackle your problem specifically, the correct way to solve your problem is via filtering on the mgc users list command.
The command to use would look like:
mgc users list --filter "externalUserState eq 'PendingAcceptance'"
You would need to have the correct permissions (e.g. User.ReadBasic.All, User.Read.All) to retrieve data for the organization's users.
For more information on what properties are available for filtering and selecting on the user entity, consult the docs
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
Context
I want to query the Graph API to find all the users I invited that have their invitations pending.
MGC Version
MGC Console Output
The text was updated successfully, but these errors were encountered: