We would like to insert group members via batch job.
URL for single request is following
https://www.googleapis.com/admin/directory/v1/groups/groupKey/members
Currently we are using following url for batch
https://www.googleapis.com/batch
But as per blog
https://developers.googleblog.com/2018/03/discontinuing-support-for-json-rpc-and.html
Change the endpoint from www.googleapis.com/batch to
www.googleapis.com/batch/<api>/<version>
What is updated batchPatch for insert group members via batch request
Related
Is there a way to export the SQL of all the reports of a project in MicroStrategy?
Get the SQL view of a previously created report instance, using the in-memory report instance created by a POST /reports/{reportId}/instances request. You obtain the authorization token needed to execute the request using POST /auth/login; you obtain the project ID using GET /projects. You pass the authorization token and the project ID in the request header. You specify the report ID and report instance ID in the path of the request.
Use below open API,
https://demo.microstrategy.com/MicroStrategyLibrary/api-docs/index.html#/Reports/getReportSqlView
I have a requirement where we need to login once for given test users and re-use access token generated by loginscript for remaining API call for a duration of 1 hour.
One Approach which I think is to Login & write the tokens in csv file and then read these tokens from CSV file for executing remaining API's, but with
this approach we need to write token in CSV file in an agent.
Since, we will be running test in load test rig. we do not have access to write in agents.
Is there any approach using which we can Login once, generate token in some variable and re-use token.
Appreciate if any one can help on this.
Login once for each user - put the logic for obtaining the token under Once Only Controller and it will be executed during 1st iteration of the Thread Group
Login once by 1 user and use the token by all users - put the logic for obtaining the token under setUp Thread Group, save the token into a JMeter Property using __setProperty() function and read it in the main Thread Group using __P() function
I am developing a rest api with spring boot and I use Keycloak with openid connect ( Oauth2) for my auth flow.
I want to create an endpoint for querying data. If the "from" timestmap is not set ( I declared it as optional) I want to use the data since account creation. In order to make a request to the keycloak admin rest api I would prefer to get this information from the token.
I've had a look at the different built in scopes ( microprofile-jwt etc. ) but I can't find the specific mapper.Also google couldn't help me out.
I use Keycloak 6.0.1.
Is it possible witht his version? Or will I have to spent a rest call to the admin api?
I know I can create a timestamp in my attributes and map it in the token but if possible I want to use to auto created by keycloak
It is possible through creating new mapper in client or scope settings.
First open mappers tab:
For client go to clients - select client - Mappers tab.
For scope go to scopes -> select scope - Mappers tab.
Create new mapper and fill in the following fields:
Name - just a name for the mapper
Type - User Property
Property - createdTimestamp
Token Claim Name - created_timestamp (you can use any name you like)
Token Claim Type - long
For scope mappers you also have to assign newly created scope to the client.
After completing these steps you can get user created timestamp directly from access token.
My scenario is
Access my web application
Login with user
Go to Monthly report
Select the criteria and click on Generate button.
I want to load test Monthly report that will be access by multiple users.
Following this I have added in Jmeter Testplan:
Recorded the script using Firefox browser.
Created cvs file (added 3 Login credentials and 3 report data in csv) for multiple user login and report access criteria.
Added CSV data set config element and pass the parameter.
Added the same parameter under requests in order to fetch data from csv (Login credentials and report data in csv).
Added View Tree Result Listener.
Run the test plan, it is displaying green icon but under response data it is displaying error (0|error|500||) for last two users. For 1st user is displaying response data.
While recording I have use the first user which is added in CSV. There is __VIEWSTATE,__EVENTVALIDATION when I have recorded using Firefox.
Let me know where I am wrong. Waiting for your response.
Your login process takes some kind of credentials apart from user and password? In your login request how many params do you send?
I want to add a user to a group through the API. The proper endpoint should be:
https://www.yammer.com/api/v1/group_settings/process_additions , but keep getting a 404.
I found this, describing my exact problem, but no answers:
I want to join users except current login to yammer group. or I want to invite them to join yammer group using javascript sdk by yammer. I found one way of doing that by following
Makes a POST to: same call as above
id: GROUP_ID
invites[ids][]: USER_ID
invites[emails][addresses]:
I don't know how to call it. I tried to call that URI but it gave me error like
"No 'Access-Control-Allow-Origin' header is present on the requested resource" can any one tell me how to pass that data to request call ?
So: How to call https://www.yammer.com/api/v1/group_settings/process_additions ?
Looks like there is an authenticity_token param missing in your URL. You must supply that parameter.
This URL works, but note that it is not documented / supported, and could potentially change at any time:
https://www.yammer.com/insert_yammer_network_name/group_settings/process_additions/isert_groupID.json?id=isert_groupID&invites[ids][]=&invites[emails][addresses]=insert_email#domain.com&auto_add_invitees=true&authenticity_token=insert_oauth-token
Modify the above format with your details, copy it into a browser URL, hit enter, and you should get the following response {"status":"ok"}, or {"already_member":"true"} if the the user is already a member of the group.
Note that you can't make REST calls to https://www.yammer.com/* as it will result to CORS error. Use https://api.yammer.com/api/v1/ as your base URL instead.
===========================
The above solution is no longer valid. Use the impersonation method instead as it is supported/documented by yammer.