anchor.diff:          Headers, delete, [], Options
       ).
   
  -get_space_user_privileges(SID, UID, ReqParams) ->
  -    {RestAddress, Headers, Options} = ReqParams,
  -    Response =
  -        do_request(
  -            RestAddress ++ "/spaces/" ++ binary_to_list(SID) ++ "/users/" ++ binary_to_list(UID) ++
  -            "/privileges",
  +get_space_privileges(UserType, SID, ID, ReqParams) ->
  +    {RestAddress, Headers, Options} = ReqParams,
  +    Response =
  +        do_request(
  +            RestAddress ++ "/spaces/" ++ binary_to_list(SID) ++ "/" ++ atom_to_list(UserType) ++ "/"
  +                ++ binary_to_list(ID) ++ "/privileges",
               Headers, get, [], Options
           ),
  -    [Priveleges] = get_body_val([priveleges], Response).
  -
  -set_space_user_privileges(SID, UID, ReqParams) ->
  +    [Priveleges] = get_body_val([priveleges], Response),
  +    Priveleges.
  +
  +set_space_privileges(UserType, SID, ID, ReqParams) ->
       {RestAddress, Headers, Options} = ReqParams,
       do_request(
  -        RestAddress ++ "/spaces/" ++ binary_to_list(SID) ++ "/users/" ++ binary_to_list(UID) ++
  -        "/privileges",
  +        RestAddress ++ "/spaces/" ++ binary_to_list(SID) ++ "/" ++ atom_to_list(UserType) ++ "/" ++
  +            binary_to_list(ID) ++ "/privileges",
           Headers, put, [], Options
       ).
   
  
positive.code: 
  all() ->
      [
          {group, provider_rest_module_test_group},
          {group, user_rest_module_test_group},
          {group, group_rest_module_test_group},
          {group, spaces_rest_module_test_group}
      ].
  
  groups() ->
      [
          {
              provider_rest_module_test_group,
              [],
              [
                  provider_crud_test,
                  provider_space_test,
                  provider_check_test
              ]
          },
          {
              user_rest_module_test_group,
              [],
              [
                  user_crud_test,
                  user_space_test,
                  many_users_space_test,
                  user_group_test,
                  many_users_group_test
              ]
          },
          {
              group_rest_module_test_group,
              [],
              [
                  group_crud_test,
                  group_users_test,
                  group_privileges_test,
                  group_spaces_test
              ]
          }
          ,
  
negative.code: 
      Token = get_space_creation_token_for_user(UserReqParams),
  
      SID = create_space(Token, ?SPACE_NAME1, ?SPACE_SIZE1, ProviderReqParams),
  
      ?assertMatch([SID, ?SPACE_NAME1],read_space(SID, ProviderReqParams)),
  
  