2022-11-24 14:12:26 +05:45
|
|
|
@api @skipOnOcV10
|
|
|
|
|
Feature: get user's own information
|
2022-11-22 13:03:56 +05:45
|
|
|
As user
|
|
|
|
|
I want to be able to retrieve my own information
|
|
|
|
|
So that I can see my information
|
|
|
|
|
|
|
|
|
|
Background:
|
|
|
|
|
Given user "Alice" has been created with default attributes and without skeleton files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: user gets his/her own information with no group involvement
|
2022-11-24 14:12:26 +05:45
|
|
|
When the user "Alice" retrieves her information using the Graph API
|
2022-11-22 13:03:56 +05:45
|
|
|
Then the HTTP status code should be "200"
|
2022-11-24 14:12:26 +05:45
|
|
|
And the user retrieve API response should contain the following information:
|
|
|
|
|
| displayName | id | mail | onPremisesSamAccountName |
|
|
|
|
|
| Alice Hansen | %uuid_v4% | alice@example.org | Alice |
|
2022-11-22 13:03:56 +05:45
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: user gets his/her own information with group involvement
|
|
|
|
|
Given group "tea-lover" has been created
|
|
|
|
|
And group "coffee-lover" has been created
|
|
|
|
|
And user "Alice" has been added to group "tea-lover"
|
|
|
|
|
And user "Alice" has been added to group "coffee-lover"
|
2022-11-24 14:12:26 +05:45
|
|
|
When the user "Alice" retrieves her information using the Graph API
|
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
|
And the user retrieve API response should contain the following information:
|
|
|
|
|
| displayName | id | mail | onPremisesSamAccountName | memberOf |
|
|
|
|
|
| Alice Hansen | %uuid_v4% | alice@example.org | Alice | tea-lover, coffee-lover |
|